mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
fix(preset): use ANTHROPIC_AUTH_TOKEN for DMXAPI and correct endpoint candidates
- Change DMXAPI preset from ANTHROPIC_API_KEY to ANTHROPIC_AUTH_TOKEN - Fix endpointCandidates that were incorrectly copied from AiHubMix
This commit is contained in:
@@ -290,11 +290,11 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://www.dmxapi.cn",
|
ANTHROPIC_BASE_URL: "https://www.dmxapi.cn",
|
||||||
ANTHROPIC_API_KEY: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖
|
// 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖
|
||||||
endpointCandidates: ["https://aihubmix.com", "https://api.aihubmix.com"],
|
endpointCandidates: ["https://www.dmxapi.cn", "https://api.dmxapi.cn"],
|
||||||
category: "aggregator",
|
category: "aggregator",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user