+ //
+ //
+ //
+ // {getClientConfig().USE_AZURE_OPENAI && (
+ // {t('llm.OpenAI.useAzure.serverConfig')}
+ // )}
+ //
+ ),
desc: t('llm.OpenAI.useAzure.desc'),
label: t('llm.OpenAI.useAzure.title'),
name: [configKey, 'openAI', 'useAzure'],
diff --git a/src/services/_header.ts b/src/services/_header.ts
index 82d79a4f..7111f49f 100644
--- a/src/services/_header.ts
+++ b/src/services/_header.ts
@@ -24,7 +24,7 @@ export const createHeaderWithOpenAI = (header?: HeadersInit): HeadersInit => {
if (openai.useAzure) {
Object.assign(result, {
- [AZURE_OPENAI_API_VERSION]: openai.azureApiVersion,
+ [AZURE_OPENAI_API_VERSION]: openai.azureApiVersion || '',
[USE_AZURE_OPENAI]: '1',
});
}
diff --git a/src/store/global/selectors.test.ts b/src/store/global/selectors.test.ts
index 4979b981..ea2f2a8a 100644
--- a/src/store/global/selectors.test.ts
+++ b/src/store/global/selectors.test.ts
@@ -68,7 +68,6 @@ describe('globalSelectors', () => {
languageModel: {
openAI: {
OPENAI_API_KEY: 'openai-api-key',
- azureApiVersion: '2023-08-01-preview',
endpoint: 'https://openai-endpoint.com',
models: ['gpt-3.5-turbo'],
},