feat: 新增智谱 GLM 供应商(6 模型,3 视觉;密钥走 data/.env)
This commit is contained in:
1 parent
950f9bbf3d
commit
35680c7b95
8 files changed
+80
-9
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user