Parcourir la source

fix acc error

Kujtim Hoxha il y a 11 mois
Parent
commit
a35466cdb3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      internal/llm/provider/anthropic.go

+ 1 - 1
internal/llm/provider/anthropic.go

@@ -262,7 +262,7 @@ func (a *anthropicClient) stream(ctx context.Context, messages []message.Message
 				event := anthropicStream.Current()
 				err := accumulatedMessage.Accumulate(event)
 				if err != nil {
-					eventChan <- ProviderEvent{Type: EventError, Error: err}
+					logging.Warn("Error accumulating message", "error", err)
 					continue
 				}