Commit be82abf
fix: handle missing </tool_call> closing tag in parse_tool_call
When using `</tool_call>` as the stop string, vLLM stops generation
BEFORE outputting the closing tag. This caused parse_tool_call() to
fail because the regex required both opening and closing tags.
Now handles both cases:
1. Full tag: <tool_call>...</tool_call>
2. Partial tag: <tool_call>... (when stop string is </tool_call>)
This was causing 0% reward in all Fleet task training runs because
valid tool calls were being rejected as "No tool call found".
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7fa4aac commit be82abf
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
0 commit comments