Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/plugins/backends/openaicodex/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func looksLikeToolProtocolText(delta string) bool {
if text == "" {
return false
}
// Treat suspected textual tool-call protocol as a stream error instead of
// dropping it silently: leaking tool syntax to the client is more damaging
// than the small false-positive risk for ordinary assistant prose.
if strings.Contains(text, "to=functions.") || strings.Contains(text, "to=functions_") {
return true
}
Expand Down
Loading