From f72b032c1da4b08e052bceda7ea5a1ea4a3fba50 Mon Sep 17 00:00:00 2001 From: liweixin Date: Tue, 7 Apr 2026 19:19:15 +0800 Subject: [PATCH] feat: add Azure OpenAI to frontend provider list and i18n --- frontend/src/components/ModelEditorDialog.vue | 12 ++++++++++++ frontend/src/i18n/locales/en-US.ts | 4 ++++ frontend/src/i18n/locales/ko-KR.ts | 4 ++++ frontend/src/i18n/locales/ru-RU.ts | 4 ++++ frontend/src/i18n/locales/zh-CN.ts | 4 ++++ 5 files changed, 28 insertions(+) diff --git a/frontend/src/components/ModelEditorDialog.vue b/frontend/src/components/ModelEditorDialog.vue index d9a041ec..df1f2ed7 100644 --- a/frontend/src/components/ModelEditorDialog.vue +++ b/frontend/src/components/ModelEditorDialog.vue @@ -317,6 +317,18 @@ const fallbackProviderOptions = computed(() => [ description: t('model.editor.providers.openai.description'), modelTypes: ['chat', 'embedding', 'vllm', 'asr'] }, + { + value: 'azure_openai', + label: t('model.editor.providers.azure_openai.label'), + defaultUrls: { + chat: 'https://{resource}.openai.azure.com', + embedding: 'https://{resource}.openai.azure.com', + vllm: 'https://{resource}.openai.azure.com', + asr: 'https://{resource}.openai.azure.com' + }, + description: t('model.editor.providers.azure_openai.description'), + modelTypes: ['chat', 'embedding', 'vllm', 'asr'] + }, { value: 'aliyun', label: t('model.editor.providers.aliyun.label'), diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index fa8f2b23..733fd223 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -2148,6 +2148,10 @@ export default { label: 'OpenAI', description: 'gpt-5.2, gpt-5-mini, etc.', }, + azure_openai: { + label: 'Azure OpenAI', + description: 'OpenAI service hosted on Microsoft Azure', + }, aliyun: { label: 'Aliyun DashScope', description: 'qwen-plus, tongyi-embedding-vision-plus, qwen3-rerank, etc.', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index ef66cfae..b6154b37 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -1598,6 +1598,10 @@ export default { label: "OpenAI", description: "gpt-5.2, gpt-5-mini 등", }, + azure_openai: { + label: 'Azure OpenAI', + description: 'Microsoft Azure에서 호스팅되는 OpenAI 서비스', + }, aliyun: { label: "Aliyun DashScope", description: "qwen-plus, tongyi-embedding-vision-plus, qwen3-rerank 등", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index a1d153d3..9d4b3788 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -1442,6 +1442,10 @@ export default { label: 'OpenAI', description: 'gpt-5.2, gpt-5-mini, etc.' }, + azure_openai: { + label: 'Azure OpenAI', + description: 'Сервис OpenAI на платформе Microsoft Azure', + }, aliyun: { label: 'Aliyun DashScope', description: 'qwen-plus, tongyi-embedding-vision-plus, qwen3-rerank, etc.' diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 926d63ee..edd54e31 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1590,6 +1590,10 @@ export default { label: "OpenAI", description: "gpt-5.2, gpt-5-mini, etc.", }, + azure_openai: { + label: 'Azure OpenAI', + description: 'Microsoft Azure 上的 OpenAI 服务', + }, aliyun: { label: "阿里云 DashScope", description: "qwen-plus, tongyi-embedding-vision-plus, qwen3-rerank, etc.",