Commit 4930155
fix: match HF-style gemma-4 model names for tool_responses role
Merge #6340
The gemma4 role fix (#5650) only matched Ollama-style names like gemma4:e2b. HF/vLLM/llama.cpp use gemma-4 with a hyphen, e.g. google/gemma-4-26B-A4B, which the substring check missed, causing the wrong tool role on non-Ollama backends.
Fixes #6334
PiperOrigin-RevId: 9480122101 parent 64a7448 commit 4930155
2 files changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
629 | 649 | | |
630 | 650 | | |
631 | 651 | | |
| |||
1006 | 1026 | | |
1007 | 1027 | | |
1008 | 1028 | | |
1009 | | - | |
| 1029 | + | |
1010 | 1030 | | |
1011 | 1031 | | |
1012 | 1032 | | |
| |||
1174 | 1194 | | |
1175 | 1195 | | |
1176 | 1196 | | |
1177 | | - | |
| 1197 | + | |
1178 | 1198 | | |
1179 | 1199 | | |
1180 | 1200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
0 commit comments