This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit 74deee8
committed
fix: enable mergeToolResultText for LM Studio and OpenAI-compatible providers
Enable the mergeToolResultText option for LM Studio and BaseOpenAiCompatibleProvider
to align their message formatting behavior with the Z.ai provider. This change helps
prevent models like GLM4.5 from getting stuck in repeated file read loops by merging
text content after tool_results into the last tool message instead of creating separate
user messages that can disrupt the model conversation flow.
Fixes #110711 parent 67e568f commit 74deee8
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments