chore: 移除 b.ai 供应商(qwen3.8-flash/hy3)—— 配置/代码/文档/测试/.env 全清
This commit is contained in:
1 parent
8c4eb2f057
commit
44fc4a5e50
10 files changed
+51
-54
No files matched your search
+3
-3
@@ -307,7 +307,7 @@ VERSION = "2.4.0"
|
||||
|
||||
app = FastAPI(
|
||||
title="API Gateway",
|
||||
description="统一多供应商 LLM 接入网关(Agnes / b.ai / 火山方舟)",
|
||||
description="统一多供应商 LLM 接入网关(Agnes / 火山方舟 / 智谱 GLM)",
|
||||
version=VERSION,
|
||||
lifespan=lifespan,
|
||||
default_response_class=UTF8JSONResponse,
|
||||
@@ -1196,8 +1196,8 @@ async def models_speedtest(request: Request, _auth=Depends(require_auth)):
|
||||
try:
|
||||
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 固定 >2:部分上游对 max_tokens<=2 回 400(要求 >2),故探针用 16 而不是 1,保证各供应商上游都认。
|
||||
# ("max_tokens must be greater than 2")
|
||||
ok = True
|
||||
break
|
||||
except Exception as e:
|
||||
|
||||
Reference in new issue
Block a user