Commit 8800781
committed
fix: match HF-style gemma-4 model names for tool_responses role
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 #63341 parent 49c0a36 commit 8800781
2 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
590 | 604 | | |
591 | 605 | | |
592 | 606 | | |
| |||
936 | 950 | | |
937 | 951 | | |
938 | 952 | | |
939 | | - | |
| 953 | + | |
| 954 | + | |
940 | 955 | | |
941 | 956 | | |
942 | 957 | | |
| |||
1113 | 1128 | | |
1114 | 1129 | | |
1115 | 1130 | | |
1116 | | - | |
| 1131 | + | |
1117 | 1132 | | |
1118 | 1133 | | |
1119 | 1134 | | |
| |||
| 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 | + | |
94 | 106 | | |
95 | 107 | | |
96 | 108 | | |
| |||
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
0 commit comments