Fix force-reasoning bugs: duplicate tools, reasoning duplication, tool extraction
- Bug 1: Skip format_tools_for_prompt in raw mode (already had condition) - Bug 2: Use final_text (after reasoning) instead of generated_text for formatter - Bug 3: Pass final_text to ModelParserAdapter instead of generated_text This prevents reasoning from appearing in both content AND reasoning fields, and allows the tool parser to properly extract tool calls without being confused by reasoning tags.
Showing
Please
register
or
sign in
to comment