Fix (completion): handle multiple images in history

This commit is contained in:
Grail Finder
2026-03-02 09:23:22 +03:00
parent b2f280a7f1
commit 8999f48fb9
2 changed files with 45 additions and 32 deletions

1
bot.go
View File

@@ -1177,7 +1177,6 @@ func findCall(msg, toolCall string) bool {
// Create tool response message with the proper tool_call_id
// Mark shell commands as always visible
isShellCommand := fc.Name == "execute_command"
// Check if response is multimodal content (image)
var toolResponseMsg models.RoleMsg
if strings.HasPrefix(strings.TrimSpace(toolMsg), `{"type":"multimodal_content"`) {