mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-11-07 09:47:23 +00:00
fix(channels): 修正 zcode 接入端点(须带 /api/v1/zcode-plan/anthropic 前缀)
参考 zcode-anthropic.ts:7 注释点名:该平台**只存在** /api/v1/zcode-plan/anthropic/v1/messages 这一个 chat 路径, openai 与裸 v1/chat/completions 一律 404 page not found。 此前 base_url 只填 https://zcode.z.ai,拼出的地址必然 404。
This commit is contained in:
@ -755,7 +755,10 @@ local PLATFORMS = {
|
||||
-- 推理走 Anthropic 协议的免费额度通道(照参考 zcode-upstream.ts):
|
||||
-- 积分制无论 bigmodel/zai 都走 zcode.z.ai(官方分派表规则 2/5,2026-10-03 实测);
|
||||
-- 只有订阅制才走 api.z.ai。这里用积分制那条。
|
||||
base_url = "https://zcode.z.ai",
|
||||
-- zcode 只存在 /api/v1/zcode-plan/anthropic/v1/messages 这一个 chat 路径
|
||||
-- (参考 zcode-anthropic.ts:7 注释:openai / 裸 v1/chat/completions 一律
|
||||
-- 404 page not found)。适配器 anthropic 补 /v1/messages。
|
||||
base_url = "https://zcode.z.ai/api/v1/zcode-plan/anthropic",
|
||||
-- 远端模型目录(照参考 zcode-upstream.ts ZCODE_CLIENT_CONFIGS_URL)
|
||||
models_remote = {
|
||||
endpoints = { { url = "https://zcode.z.ai/api/v1/client/configs", method = "GET",
|
||||
|
||||
Reference in New Issue
Block a user