diff options
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -629,6 +629,13 @@ func findCall(msg, toolCall string, tv *tview.TextView) { } lastToolCall.Args = openAIToolMap fc = lastToolCall + // Ensure lastToolCallID is set if it's available in the tool call + if lastToolCallID == "" && len(openAIToolMap) > 0 { + // Attempt to extract ID from the parsed tool call if not already set + if id, exists := openAIToolMap["id"]; exists { + lastToolCallID = id + } + } } else { jsStr := toolCallRE.FindString(msg) if jsStr == "" { |
