feat(vlm): add configurable enable_thinking flag#1514
feat(vlm): add configurable enable_thinking flag#1514yeyitech wants to merge 2 commits intovolcengine:mainfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
Codex seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Summary
vlm.enable_thinkingconfig so callers can force, suppress, or defer backend-specificextra_body.enable_thinkingCloses #983
Testing
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -o addopts='' -q tests/unit/test_vlm_thinking_param.py tests/unit/test_extra_headers_vlm.py::TestVLMExtraHeaders::test_dashscope_text_completion_passes_enable_thinking_in_extra_body tests/unit/test_extra_headers_vlm.py::TestVLMExtraHeaders::test_official_openai_text_completion_does_not_set_enable_thinking tests/unit/test_extra_headers_vlm.py::TestVLMExtraHeaders::test_explicit_enable_thinking_forces_extra_body_on_openai_backend tests/unit/test_extra_headers_vlm.py::TestVLMExtraHeaders::test_azure_text_completion_does_not_set_enable_thinking tests/unit/test_extra_headers_vlm.py::TestVLMExtraHeaders::test_explicit_disable_thinking_suppresses_dashscope_extra_body tests/misc/test_config_validation.py