Răsfoiți Sursa

fix: remove timout

Kujtim Hoxha 6 luni în urmă
părinte
comite
2eaad5104a
2 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 1
      internal/llm/provider/anthropic.go
  2. 0 1
      internal/llm/provider/openai.go

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

@@ -332,7 +332,7 @@ func (a *anthropicClient) stream(ctx context.Context, messages []message.Message
 			// Prepare messages on each attempt in case max_tokens was adjusted
 			preparedMessages := a.preparedMessages(a.convertMessages(messages), a.convertTools(tools))
 
-			opts := []option.RequestOption{option.WithRequestTimeout(time.Minute)}
+			var opts []option.RequestOption
 			if a.isThinkingEnabled() {
 				opts = append(opts, option.WithHeaderAdd("anthropic-beta", "interleaved-thinking-2025-05-14"))
 			}

+ 0 - 1
internal/llm/provider/openai.go

@@ -337,7 +337,6 @@ func (o *openaiClient) stream(ctx context.Context, messages []message.Message, t
 			openaiStream := o.client.Chat.Completions.NewStreaming(
 				ctx,
 				params,
-				option.WithRequestTimeout(time.Minute),
 			)
 
 			acc := openai.ChatCompletionAccumulator{}