File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ output OPENAI_EMBED_HOST string = openAIEmbedHost
447
447
output AZURE_OPENAI_ENDPOINT string = !empty (azureOpenAIEndpoint )
448
448
? azureOpenAIEndpoint
449
449
: (deployAzureOpenAI ? openAI .outputs .endpoint : '' )
450
- output AZURE_OPENAI_VERSION string = openAIEmbedHost == 'chat' ? azureOpenAIAPIVersion : ''
450
+ output AZURE_OPENAI_VERSION string = azureOpenAIAPIVersion
451
451
output AZURE_OPENAI_CHAT_DEPLOYMENT string = deployAzureOpenAI ? chatDeploymentName : ''
452
452
output AZURE_OPENAI_CHAT_DEPLOYMENT_VERSION string = deployAzureOpenAI ? chatDeploymentVersion : ''
453
453
output AZURE_OPENAI_CHAT_DEPLOYMENT_CAPACITY int = deployAzureOpenAI ? chatDeploymentCapacity : 0
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ async def create_openai_embed_client(
62
62
openai_embed_client : openai .AsyncAzureOpenAI | openai .AsyncOpenAI
63
63
OPENAI_EMBED_HOST = os .getenv ("OPENAI_EMBED_HOST" )
64
64
if OPENAI_EMBED_HOST == "azure" :
65
- api_version = os .environ ["AZURE_OPENAI_VERSION" ]
65
+ api_version = os .environ ["AZURE_OPENAI_VERSION" ] or "2024-03-01-preview"
66
66
azure_endpoint = os .environ ["AZURE_OPENAI_ENDPOINT" ]
67
67
azure_deployment = os .environ ["AZURE_OPENAI_EMBED_DEPLOYMENT" ]
68
68
if api_key := os .getenv ("AZURE_OPENAI_KEY" ):
You can’t perform that action at this time.
0 commit comments