fix: allow custom provider to configure thinking style (#4429)

This commit is contained in:
axelray-dev authored and Xubin Ren committed 2026-06-25 22:53:15 +08:00
1 parent 34f776b48b
commit ceae6d7b61
5 files changed
+53 -4

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ def _make_provider_core(
if provider_name and not spec and p:
if not p.api_base:
raise ValueError(f"Provider '{provider_name}' requires api_base in config.")
spec = create_dynamic_spec(provider_name)
spec = create_dynamic_spec(provider_name, thinking_style=p.thinking_style if p else "")
if spec and spec.is_transcription_only:
raise ValueError(f"Provider '{provider_name}' only supports transcription.")
backend = spec.backend if spec else "openai_compat"