Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: add Base URL field to predefined Azure provider (#8510)

Isabel Wu1adee03918ea
diff --git a/web-app/src/constants/providers.ts b/web-app/src/constants/providers.ts
index c9b9a67ea..7666ad614 100644
--- a/web-app/src/constants/providers.ts
+++ b/web-app/src/constants/providers.ts
@@ -95,6 +95,17 @@ export const predefinedProviders = [
input_actions: ['unobscure', 'copy'],
},
},
+ {
+ key: 'base-url',
+ title: 'Base URL',
+ description:
+ 'Your Azure OpenAI resource endpoint, e.g. https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1',
+ controller_type: 'input',
+ controller_props: {
+ placeholder: 'https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1',
+ value: 'https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1',
+ },
+ },
],
models: [],
},