sync update from LAN repo (source ji @ 85078a31)

This commit is contained in:
gozeros committed 2026-10-21 15:09:16 +08:00
1 parent 5d6627af50
commit e602d88695
864 files changed
+99150 -6346

No files matched your search

@@ -239,3 +239,26 @@ def test_force_disable_thinking_skips_generic_openai_models_without_thinking_sup
)
assert chat_model.extra_body is None
def test_openai_compatible_thinking_sends_enable_flag_by_default() -> None:
config = AppConfig.model_construct(
models=[
ModelConfig(
name="qwen-thinking",
use="langchain_openai:ChatOpenAI",
model="Qwen3.8-27B",
api_key="test-key",
base_url="http://vllm.example/v1",
supports_thinking=True,
)
]
)
chat_model = create_chat_model(
"qwen-thinking",
app_config=config,
thinking_enabled=True,
)
assert chat_model.extra_body == {"enable_thinking": True}