We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd9533f commit c7c0949Copy full SHA for c7c0949
src/providers/azureopenai.ts
@@ -10,6 +10,7 @@ import type {
10
} from '../types.js';
11
12
interface AzureOpenAiCompletionOptions {
13
+ apiHost?: string;
14
apiKey?: string;
15
temperature?: number;
16
top_p?: number;
@@ -41,7 +42,7 @@ class AzureOpenAiGenericProvider implements ApiProvider {
41
42
this.deploymentName = deploymentName;
43
44
this.apiKey = config?.apiKey || env?.AZURE_OPENAI_API_KEY || process.env.AZURE_OPENAI_API_KEY;
- this.apiHost = env?.AZURE_OPENAI_API_HOST || process.env.AZURE_OPENAI_API_HOST;
45
+ this.apiHost = config?.apiHost || env?.AZURE_OPENAI_API_HOST || process.env.AZURE_OPENAI_API_HOST;
46
47
this.config = config || {};
48
this.id = id ? () => id : this.id;
0 commit comments