fix(openai): map reasoning.enabled to thinking AND enable_thinking (#23951)

This commit is contained in:
Xinyuan Tong
2026-05-07 14:01:35 -07:00
committed by GitHub
parent 9cffa5ed6f
commit f1395af543
2 changed files with 8 additions and 1 deletions
@@ -191,7 +191,10 @@ class TestChatCompletionRequest(unittest.TestCase):
},
)
self.assertEqual(request.reasoning_effort, "high")
self.assertEqual(request.chat_template_kwargs, {"thinking": True})
self.assertEqual(
request.chat_template_kwargs,
{"thinking": True, "enable_thinking": True},
)
def test_chat_completion_reasoning_effort_none(self):
"""Test reasoning_effort='none' disables thinking"""