File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " hai-build-code-generator " : patch
3+ ---
4+
5+ Fixing LLM configuration validation
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ 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+ if ( this . options . openAiBaseUrl ?. toLowerCase ( ) . includes ( "azure" ) ) {
1919 this . client = new AzureOpenAI ( {
2020 endpoint : this . options . openAiBaseUrl ,
2121 deployment : this . options . openAiModelId ,
@@ -107,7 +107,7 @@ export class OpenAiHandler implements ApiHandler {
107107
108108 async validateAPIKey ( ) : Promise < boolean > {
109109 try {
110- if ( this . options . openAiBaseUrl ?. toLowerCase ( ) . includes ( "azure.com " ) && ! this . options . openAiModelId ) {
110+ if ( this . options . openAiBaseUrl ?. toLowerCase ( ) . includes ( "azure" ) && ! this . options . openAiModelId ) {
111111 return false
112112 }
113113
You can’t perform that action at this time.
0 commit comments