Update llm_catalog.py
This commit is contained in:
parent
329ef962ff
commit
0f41516caf
|
|
@ -211,11 +211,15 @@ def _tongyi_model_kwargs_from_chatopenai_extras(
|
|||
|
||||
|
||||
def _tongyi_chattongyi_must_use_openai_compatible(api_model: str) -> bool:
|
||||
"""百炼:部分模型与 ``Generation.call``(text-generation)不匹配,``ChatTongyi`` 仍会走该端点会报 ``url error``;须改用 OpenAI 兼容接口。"""
|
||||
"""百炼:部分模型与 ``Generation.call``(text-generation)不匹配,``ChatTongyi`` 仍会走该端点会报 ``url error``;须改用 OpenAI 兼容接口。
|
||||
|
||||
Qwen3 系列在 ``ChatTongyi`` 上流式 tool call 易出现 arguments 非 JSON、工具名丢失等问题,
|
||||
Agent 文生图/视频等模式无法稳定调用工具,故统一走 OpenAI 兼容网关。
|
||||
"""
|
||||
m = (api_model or "").strip().lower()
|
||||
if any(x in m for x in ("-vl-", "vl-plus", "vl-max", "omni")):
|
||||
return True
|
||||
if m.startswith("qwen3.5") or m.startswith("qwen3.6"):
|
||||
if m.startswith("qwen3"):
|
||||
return True
|
||||
if m.startswith("qwen2.5-vl") or m.startswith("qwen-vl"):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in New Issue