Skip to content

Commit 46aecfa

Browse files
fix: Replaced baseUrl with endpoint for AzureOpenAI (#152)
1 parent 0fb20a3 commit 46aecfa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lovely-geese-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hai-build-code-generator": patch
3+
---
4+
5+
Fixed deployment name not being passed as separate parameter for AzureOpenAI (OpenAI-Compatible)

src/api/providers/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class OpenAiHandler implements ApiHandler {
2323
!this.options.openAiModelId?.toLowerCase().includes("deepseek"))
2424
) {
2525
this.client = new AzureOpenAI({
26-
baseURL: this.options.openAiBaseUrl,
26+
endpoint: this.options.openAiBaseUrl,
2727
apiKey: this.options.openAiApiKey,
2828
apiVersion: this.options.azureApiVersion || azureOpenAiDefaultApiVersion,
2929
defaultHeaders: this.options.openAiHeaders,

0 commit comments

Comments
 (0)