YueGuobin 156072118f
fix: Disable DeepSeek thinking mode to avoid reasoning_content errors
DeepSeek models (deepseek-v4-flash/pro) enable thinking mode by default,
which returns reasoning_content that must be passed back to the API in
subsequent requests. This causes 400 errors in multi-turn conversations
when the reasoning_content is not properly handled.

This commit disables thinking mode by passing extra_body={"thinking": {"type": "disabled"}}
as an explicit parameter to DeepSeek models, preventing the reasoning_content
field from being generated.

Modified:
- create_base_model(): Add extra_body parameter with thinking mode disabled
- create_title_model(): Add extra_body parameter with thinking mode disabled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 22:31:50 +08:00
..
2026-05-08 19:03:14 +08:00
2026-05-09 18:23:00 +08:00
2026-05-09 18:23:00 +08:00
2026-03-28 09:54:22 +08:00
2026-04-04 19:55:13 +08:00
2026-04-25 13:19:19 +08:00
2024-04-22 18:51:29 +07:00
2026-05-08 19:06:04 +08:00
2022-01-19 22:28:36 +10:30
2026-05-08 20:03:31 +08:00