@@ -153,7 +153,6 @@ func (a *anthropicClient) convertMessages(messages []message.Message) (anthropic
155 if len(blocks) == 0 {
155 if len(blocks) == 0 {
156− slog.Warn("There is a message without content, investigate, this should not happen")
159 anthropicMessages = append(anthropicMessages, anthropic.NewAssistantMessage(blocks...))
158 anthropicMessages = append(anthropicMessages, anthropic.NewAssistantMessage(blocks...))
@@ -333,7 +332,7 @@ func (a *anthropicClient) stream(ctx context.Context, messages []message.Message
333 // Prepare messages on each attempt in case max_tokens was adjusted
332 // Prepare messages on each attempt in case max_tokens was adjusted
334 preparedMessages := a.preparedMessages(a.convertMessages(messages), a.convertTools(tools))
333 preparedMessages := a.preparedMessages(a.convertMessages(messages), a.convertTools(tools))
336− var opts []option.RequestOption
335+ opts := []option.RequestOption{option.WithRequestTimeout(time.Minute)}
337 if a.isThinkingEnabled() {
336 if a.isThinkingEnabled() {
338 opts = append(opts, option.WithHeaderAdd("anthropic-beta", "interleaved-thinking-2025-05-14"))
337 opts = append(opts, option.WithHeaderAdd("anthropic-beta", "interleaved-thinking-2025-05-14"))