Skip to content

Conversation

@XiaoConstantine
Copy link
Contributor

Summary

  • Switch from messages.create() to messages.stream() for both sync and async
  • Required for max_tokens > 21333 or long-running requests (>10 min)
  • Add warnings for empty responses and truncation (stop_reason == max_tokens)

Dependencies

Depends on #3.

- Switch from messages.create() to messages.stream() for both sync and async
- Required for max_tokens > 21333 or long-running requests
- Add warnings for empty responses and truncation (stop_reason == max_tokens)
@XiaoConstantine XiaoConstantine force-pushed the fix/anthropic-streaming branch from ab1b635 to 0dd92e8 Compare January 4, 2026 18:07
@ainergiz ainergiz mentioned this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants