fix: azure website link (#407)

This commit is contained in:
TinsFox
2025-12-17 08:43:55 +08:00
committed by GitHub
parent ec20ff4d8c
commit 18e973b920
+5 -5
View File
@@ -40,7 +40,7 @@ export function generateThirdPartyAuth(apiKey: string): Record<string, any> {
export function generateThirdPartyConfig(
providerName: string,
baseUrl: string,
modelName = "gpt-5.1-codex",
modelName = "gpt-5.1-codex"
): string {
// 清理供应商名称,确保符合TOML键名规范
const cleanProviderName =
@@ -80,7 +80,7 @@ export const codexProviderPresets: CodexProviderPreset[] = [
{
name: "Azure OpenAI",
websiteUrl:
"https://learn.microsoft.com/azure/ai-services/openai/how-to/overview",
"https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/codex",
category: "third_party",
isOfficial: true,
auth: generateThirdPartyAuth(""),
@@ -113,7 +113,7 @@ requires_openai_auth = true`,
config: generateThirdPartyConfig(
"aihubmix",
"https://aihubmix.com/v1",
"gpt-5.1-codex",
"gpt-5.1-codex"
),
endpointCandidates: [
"https://aihubmix.com/v1",
@@ -128,7 +128,7 @@ requires_openai_auth = true`,
config: generateThirdPartyConfig(
"dmxapi",
"https://www.dmxapi.cn/v1",
"gpt-5.1-codex",
"gpt-5.1-codex"
),
endpointCandidates: ["https://www.dmxapi.cn/v1"],
},
@@ -141,7 +141,7 @@ requires_openai_auth = true`,
config: generateThirdPartyConfig(
"packycode",
"https://www.packyapi.com/v1",
"gpt-5.1-codex",
"gpt-5.1-codex"
),
endpointCandidates: [
"https://www.packyapi.com/v1",