Commit 0b59211
committed
Drop response_format when sending tools
Several inference stacks (Kimi-K2 on HF Router, vLLM with some tool
parsers) reject 'You cannot specify response format and function call
at the same time'. The system prompt already mandates JSON-only output
and _extract_json is forgiving, so dropping response_format during the
tool loop is safe.1 parent 52be01e commit 0b59211
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
158 | 166 | | |
159 | | - | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| |||
0 commit comments