feat: 新增智谱 GLM 供应商(6 模型,3 视觉;密钥走 data/.env)

This commit is contained in:
api-gateway committed 2026-09-16 09:16:27 +08:00
1 parent 8deb938830
commit 597ccea40d
8 files changed
+80 -9

No files matched your search

+1 -1
View File
@@ -1197,7 +1197,7 @@ async def models_speedtest(request: Request, _auth=Depends(require_auth)):
await adapter.chat(model=m["id"], messages=[{"role": "user", "content": "hi"}],
temperature=0, max_tokens=16, stop=None)
# max_tokens 固定 >2:b.ai(qwen3.8-flash/hy3) 上游对 max_tokens<=2 回 400
# ("max_tokens must be greater than 2"),故探针用 16 而不是 1,保证三家供应商都认。
# ("max_tokens must be greater than 2"),故探针用 16 而不是 1,保证各供应商上游都认。
ok = True
break
except Exception as e: