@@ -374,8 +374,9 @@ func (o *openaiClient) stream(ctx context.Context, messages []message.Message, t
374 newID := uuid.NewString()
374 newID := uuid.NewString()
375 toolCallIDMap[toolCall.ID] = newID
375 toolCallIDMap[toolCall.ID] = newID
376 toolCall.ID = newID
376 toolCall.ID = newID
380 newToolCall := false
381 newToolCall := false
381 if existingToolCall, ok := msgToolCalls[toolCall.Index]; ok { // tool call exists
382 if existingToolCall, ok := msgToolCalls[toolCall.Index]; ok { // tool call exists