Skip to content

Commit 8d41705

Browse files
authored
Add environment variable support for azure_deployment
1 parent db41d15 commit 8d41705

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎rlm/clients/azure_openai.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(
3939
if api_version is None:
4040
api_version = os.getenv("AZURE_OPENAI_API_VERSION", "2024-02-01")
4141

42+
if azure_deployment is None:
43+
azure_deployment = os.getenv("AZURE_OPENAI_DEPLOYMENT")
44+
4245
if azure_endpoint is None:
4346
raise ValueError(
4447
"azure_endpoint is required for Azure OpenAI client. "

0 commit comments

Comments
 (0)