diff --git a/web/admin-spa/src/components/accounts/AccountForm.vue b/web/admin-spa/src/components/accounts/AccountForm.vue
index 083d1b48..c8569f77 100644
--- a/web/admin-spa/src/components/accounts/AccountForm.vue
+++ b/web/admin-spa/src/components/accounts/AccountForm.vue
@@ -1614,9 +1614,112 @@
+
+
+
+
+
+
+ {{ errors.azureEndpoint }}
+
+
+
+
+
+
+
+ Azure OpenAI API 版本,默认使用最新稳定版本 2024-02-01
+
+
+
+
+
+
+
+ {{ errors.deploymentName }}
+
+
+
+
+
+
+
+ {{ errors.apiKey }}
+
+
留空表示不更新 API Key
+
+
+
+
+
+
+
+
选择此部署支持的模型类型
+
+
+
@@ -2492,6 +2595,21 @@ const updateAccount = async () => {
data.rateLimitDuration = form.value.enableRateLimit ? form.value.rateLimitDuration || 60 : 0
}
+ // Azure OpenAI 特定更新
+ if (props.account.platform === 'azure_openai') {
+ data.azureEndpoint = form.value.azureEndpoint
+ data.apiVersion = form.value.apiVersion || '2024-02-01'
+ data.deploymentName = form.value.deploymentName
+ data.supportedModels = Array.isArray(form.value.supportedModels)
+ ? form.value.supportedModels
+ : []
+ data.priority = form.value.priority || 50
+ // 只有当有新的 API Key 时才更新
+ if (form.value.apiKey && form.value.apiKey.trim()) {
+ data.apiKey = form.value.apiKey
+ }
+ }
+
if (props.account.platform === 'claude') {
await accountsStore.updateClaudeAccount(props.account.id, data)
} else if (props.account.platform === 'claude-console') {
@@ -2500,6 +2618,8 @@ const updateAccount = async () => {
await accountsStore.updateBedrockAccount(props.account.id, data)
} else if (props.account.platform === 'openai') {
await accountsStore.updateOpenAIAccount(props.account.id, data)
+ } else if (props.account.platform === 'azure_openai') {
+ await accountsStore.updateAzureOpenAIAccount(props.account.id, data)
} else {
await accountsStore.updateGeminiAccount(props.account.id, data)
}