From c3b74707fc2e33c711c9ca8df57c11d597c4bf27 Mon Sep 17 00:00:00 2001 From: Roman Glushko Date: Sun, 17 Mar 2024 14:52:39 +0200 Subject: [PATCH] #163: linting --- pkg/providers/lang.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/providers/lang.go b/pkg/providers/lang.go index 8b5ffdc6..9fa78281 100644 --- a/pkg/providers/lang.go +++ b/pkg/providers/lang.go @@ -123,10 +123,10 @@ func (m *LanguageModel) ChatStream(ctx context.Context, req *schemas.ChatRequest m.chatStreamLatency.Add(float64(chunkLatency)) if err != nil { - streamResultC <- clients.NewChatStreamResult(nil, err) - m.healthTracker.TrackErr(err) + // if connection was not even open, we should not send our clients any messages about this failure + return }