From 65055c7687bc1ddd4e44dd146821b0e622eb5675 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 9 Apr 2025 20:04:44 +0200 Subject: minor fixes --- internal/llm/provider/anthropic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/llm/provider') diff --git a/internal/llm/provider/anthropic.go b/internal/llm/provider/anthropic.go index fbecbd43c..88b874806 100644 --- a/internal/llm/provider/anthropic.go +++ b/internal/llm/provider/anthropic.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "fmt" + "io" "strings" "time" @@ -236,7 +237,7 @@ func (a *anthropicProvider) StreamResponse(ctx context.Context, messages []messa } err := stream.Err() - if err == nil { + if err == nil || errors.Is(err, io.EOF) { return } -- cgit v1.2.3