You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da79133
Browse filesBrowse the repository at this point in the historyBrowse files
fix: use streaming for Anthropic API to handle long responses
- 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)
0 commit comments