mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 19:22:15 +08:00
fix(presets): update Zhipu coding plan endpoints
This commit is contained in:
@@ -286,10 +286,10 @@ requires_openai_auth = true`,
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"zhipu_glm",
|
||||
"https://open.bigmodel.cn/api/paas/v4",
|
||||
"https://open.bigmodel.cn/api/coding/paas/v4",
|
||||
"glm-5.1",
|
||||
),
|
||||
endpointCandidates: ["https://open.bigmodel.cn/api/paas/v4"],
|
||||
endpointCandidates: ["https://open.bigmodel.cn/api/coding/paas/v4"],
|
||||
apiFormat: "openai_chat",
|
||||
modelCatalog: modelCatalog([
|
||||
{ model: "glm-5.1", displayName: "GLM-5.1", contextWindow: 200000 },
|
||||
@@ -312,10 +312,10 @@ requires_openai_auth = true`,
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"zhipu_glm_en",
|
||||
"https://api.z.ai/api/paas/v4",
|
||||
"https://api.z.ai/api/coding/paas/v4",
|
||||
"glm-5.1",
|
||||
),
|
||||
endpointCandidates: ["https://api.z.ai/api/paas/v4"],
|
||||
endpointCandidates: ["https://api.z.ai/api/coding/paas/v4"],
|
||||
apiFormat: "openai_chat",
|
||||
modelCatalog: modelCatalog([
|
||||
{ model: "glm-5.1", displayName: "GLM-5.1", contextWindow: 200000 },
|
||||
|
||||
Reference in New Issue
Block a user