feat(providers): add DMXAPI provider and refine naming
- Add DMXAPI provider for both Claude and Codex - Rename "Codex Official" to "OpenAI Official" for clarity - Rename "Azure OpenAI (gpt-5-codex)" to "Azure OpenAI" - Reorganize AiHubMix position in Claude presets
This commit is contained in:
@@ -55,27 +55,6 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
textColor: "#FFFFFF",
|
textColor: "#FFFFFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "AiHubMix",
|
|
||||||
websiteUrl: "https://aihubmix.com",
|
|
||||||
apiKeyUrl: "https://aihubmix.com",
|
|
||||||
// 说明:该供应商使用 ANTHROPIC_API_KEY(而非 ANTHROPIC_AUTH_TOKEN)
|
|
||||||
apiKeyField: "ANTHROPIC_API_KEY",
|
|
||||||
settingsConfig: {
|
|
||||||
env: {
|
|
||||||
ANTHROPIC_BASE_URL: "https://aihubmix.com",
|
|
||||||
ANTHROPIC_API_KEY: "",
|
|
||||||
// 可选的模型默认值(留空表示使用系统默认)
|
|
||||||
// ANTHROPIC_MODEL: "",
|
|
||||||
// ANTHROPIC_DEFAULT_HAIKU_MODEL: "",
|
|
||||||
// ANTHROPIC_DEFAULT_SONNET_MODEL: "",
|
|
||||||
// ANTHROPIC_DEFAULT_OPUS_MODEL: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖
|
|
||||||
endpointCandidates: ["https://aihubmix.com", "https://api.aihubmix.com"],
|
|
||||||
category: "aggregator",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "DeepSeek",
|
name: "DeepSeek",
|
||||||
websiteUrl: "https://platform.deepseek.com",
|
websiteUrl: "https://platform.deepseek.com",
|
||||||
@@ -213,6 +192,36 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "AiHubMix",
|
||||||
|
websiteUrl: "https://aihubmix.com",
|
||||||
|
apiKeyUrl: "https://aihubmix.com",
|
||||||
|
// 说明:该供应商使用 ANTHROPIC_API_KEY(而非 ANTHROPIC_AUTH_TOKEN)
|
||||||
|
apiKeyField: "ANTHROPIC_API_KEY",
|
||||||
|
settingsConfig: {
|
||||||
|
env: {
|
||||||
|
ANTHROPIC_BASE_URL: "https://aihubmix.com",
|
||||||
|
ANTHROPIC_API_KEY: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖
|
||||||
|
endpointCandidates: ["https://aihubmix.com", "https://api.aihubmix.com"],
|
||||||
|
category: "aggregator",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "DMXAPI",
|
||||||
|
websiteUrl: "https://www.dmxapi.cn",
|
||||||
|
apiKeyUrl: "https://www.dmxapi.cn",
|
||||||
|
settingsConfig: {
|
||||||
|
env: {
|
||||||
|
ANTHROPIC_BASE_URL: "https://www.dmxapi.cn",
|
||||||
|
ANTHROPIC_API_KEY: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖
|
||||||
|
endpointCandidates: ["https://aihubmix.com", "https://api.aihubmix.com"],
|
||||||
|
category: "aggregator",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "PackyCode",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://www.packyapi.com",
|
websiteUrl: "https://www.packyapi.com",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ requires_openai_auth = true`;
|
|||||||
|
|
||||||
export const codexProviderPresets: CodexProviderPreset[] = [
|
export const codexProviderPresets: CodexProviderPreset[] = [
|
||||||
{
|
{
|
||||||
name: "Codex Official",
|
name: "OpenAI Official",
|
||||||
websiteUrl: "https://chatgpt.com/codex",
|
websiteUrl: "https://chatgpt.com/codex",
|
||||||
isOfficial: true,
|
isOfficial: true,
|
||||||
category: "official",
|
category: "official",
|
||||||
@@ -71,7 +71,7 @@ export const codexProviderPresets: CodexProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Azure OpenAI (gpt-5-codex)",
|
name: "Azure OpenAI",
|
||||||
websiteUrl:
|
websiteUrl:
|
||||||
"https://learn.microsoft.com/azure/ai-services/openai/how-to/overview",
|
"https://learn.microsoft.com/azure/ai-services/openai/how-to/overview",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
@@ -83,7 +83,7 @@ model_reasoning_effort = "high"
|
|||||||
disable_response_storage = true
|
disable_response_storage = true
|
||||||
|
|
||||||
[model_providers.azure]
|
[model_providers.azure]
|
||||||
name = "Azure OpenAI (gpt-5-codex)"
|
name = "Azure OpenAI"
|
||||||
base_url = "https://YOUR_RESOURCE_NAME.openai.azure.com/openai"
|
base_url = "https://YOUR_RESOURCE_NAME.openai.azure.com/openai"
|
||||||
env_key = "OPENAI_API_KEY"
|
env_key = "OPENAI_API_KEY"
|
||||||
query_params = { "api-version" = "2025-04-01-preview" }
|
query_params = { "api-version" = "2025-04-01-preview" }
|
||||||
@@ -111,6 +111,20 @@ requires_openai_auth = true`,
|
|||||||
"https://api.aihubmix.com/v1",
|
"https://api.aihubmix.com/v1",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "DMXAPI",
|
||||||
|
websiteUrl: "https://www.dmxapi.cn",
|
||||||
|
category: "aggregator",
|
||||||
|
auth: generateThirdPartyAuth(""),
|
||||||
|
config: generateThirdPartyConfig(
|
||||||
|
"dmxapi",
|
||||||
|
"https://www.dmxapi.cn/v1",
|
||||||
|
"gpt-5-codex",
|
||||||
|
),
|
||||||
|
endpointCandidates: [
|
||||||
|
"https://www.dmxapi.cn/v1",
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "PackyCode",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://www.packyapi.com",
|
websiteUrl: "https://www.packyapi.com",
|
||||||
|
|||||||
Reference in New Issue
Block a user