on main help sign in
fix: remove timout
commit2eaad5104af88ce0ebfa7f337332df69c2940559 authorKujtim Hoxha <kujtimii.h@gmail.com> dateFri 15 Aug 2025, 12:21 (1 year ago) parent5f67a58
2 files changed+1−2
internal/llm/provider/anthropic.go+1−1 internal/llm/provider/openai.go−1
internal/llm/provider/anthropic.go+1−1
@@ -332,7 +332,7 @@ func (a *anthropicClient) stream(ctx context.Context, messages []message.Message
332332 // Prepare messages on each attempt in case max_tokens was adjusted
333333 preparedMessages := a.preparedMessages(a.convertMessages(messages), a.convertTools(tools))
334334
335− opts := []option.RequestOption{option.WithRequestTimeout(time.Minute)}
335+ var opts []option.RequestOption
336336 if a.isThinkingEnabled() {
337337 opts = append(opts, option.WithHeaderAdd("anthropic-beta", "interleaved-thinking-2025-05-14"))
338338 }
internal/llm/provider/openai.go−1
@@ -337,7 +337,6 @@ func (o *openaiClient) stream(ctx context.Context, messages []message.Message, t
337337 openaiStream := o.client.Chat.Completions.NewStreaming(
338338 ctx,
339339 params,
340− option.WithRequestTimeout(time.Minute),
341340 )
342341
343342 acc := openai.ChatCompletionAccumulator{}