fix(core): conditionally apply thinking parameters based on model support

This commit is contained in:
Timebomb2018
2026-04-15 12:24:11 +08:00
parent daaee63bd5
commit 737858731b

View File

@@ -112,6 +112,7 @@ class RedBearModelFactory:
params["stream_usage"] = True
# 深度思考模式
is_streaming = bool(config.extra_params.get("streaming"))
if config.support_thinking:
if is_streaming and not config.is_omni:
if provider == ModelProvider.VOLCANO:
# 火山引擎深度思考仅流式调用支持,非流式时不传 thinking 参数