fix: remove timout

Kujtim Hoxha created

Change summary

internal/llm/provider/anthropic.go | 2 +-
internal/llm/provider/openai.go    | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)

Detailed changes

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"))
 			}

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{}