File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " claude-dev " : patch
3+ ---
4+
5+ fixes an issue with Azure API version detection in the OpenAI provider
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ export class OpenAiHandler implements ApiHandler {
1515 constructor ( options : ApiHandlerOptions ) {
1616 this . options = options
1717 // Azure API shape slightly differs from the core API shape: https://github.com/openai/openai-node?tab=readme-ov-file#microsoft-azure-openai
18- if ( this . options . openAiBaseUrl ?. toLowerCase ( ) . includes ( "azure.com" ) ) {
18+ // Use azureApiVersion to determine if this is an Azure endpoint, since the URL may not always contain 'azure.com'
19+ if ( this . options . azureApiVersion || this . options . openAiBaseUrl ?. toLowerCase ( ) . includes ( "azure.com" ) ) {
1920 this . client = new AzureOpenAI ( {
2021 baseURL : this . options . openAiBaseUrl ,
2122 apiKey : this . options . openAiApiKey ,
You can’t perform that action at this time.
0 commit comments