Commit 9d47234
fix: stop model calling tools for simple chat (hello → text, not tool_call)
Gemini sees 106 tools and calls one for every message including "hello".
Added explicit "do NOT call tools for simple chat" guidance to both the
system prompt and the tool injection block. Model now responds with text
for conversational messages and only calls tools when explicitly needed.
Also removed leftover debug log line.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bd7ec1e commit 9d47234
3 files changed
+21
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| |||
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
310 | 320 | | |
311 | 321 | | |
312 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | 486 | | |
489 | 487 | | |
490 | | - | |
491 | 488 | | |
492 | 489 | | |
493 | 490 | | |
494 | | - | |
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
| |||
832 | 828 | | |
833 | 829 | | |
834 | 830 | | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
0 commit comments