mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(provider): recognize open.bigmodel.cn as Zhipu/ZAI provider
Zhipu AI (智谱) serves both international users via api.z.ai and China-based users via open.bigmodel.cn. The domestic endpoint was not mapped in _URL_TO_PROVIDER, causing Hermes to treat it as an unknown custom endpoint and fall back to the default 128K context length instead of resolving the correct 200K+ context via models.dev or the hardcoded GLM defaults. This affects users of both the standard API (https://open.bigmodel.cn/api/paas/v4) and the Coding Plan (https://open.bigmodel.cn/api/coding/paas/v4).
This commit is contained in:
parent
0dace06db7
commit
276ef49c96
1 changed files with 1 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ _URL_TO_PROVIDER: Dict[str, str] = {
|
|||
"chatgpt.com": "openai",
|
||||
"api.anthropic.com": "anthropic",
|
||||
"api.z.ai": "zai",
|
||||
"open.bigmodel.cn": "zai",
|
||||
"api.moonshot.ai": "kimi-coding",
|
||||
"api.moonshot.cn": "kimi-coding-cn",
|
||||
"api.kimi.com": "kimi-coding",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue