Repository navigation
fix(models): wrap Anthropic rate limit errors - #5401
MukundaKatta wants to merge 2 commits into
Conversation
|
Response from ADK Triaging Agent Hello @MukundaKatta, thank you for your contribution! To help us track and manage changes effectively, could you please associate this PR with a GitHub issue? If an issue doesn't exist yet, you can create one and link it. This will help our reviewers better understand the context of your fix. Thanks! |
|
Hi @MukundaKatta , Thank you for your contribution! We appreciate you taking the time to submit this pull request. Can you please fix the failing mypy-diff tests and formatting errors. |
|
Hi @MukundaKatta , can you resolve the conflicts as well. |
d95514d to
36b874f
Compare
|
@rohityan rebased onto latest main. Same diff as before ( |
|
Hi @Jacksunwei , can you please review this. |
Merge #5401 ## Summary - wrap Anthropic RateLimitError in a dedicated ADK exception with mitigation guidance - apply the wrapper consistently for both streaming and non-streaming Claude requests - add regression tests for both code paths ## Testing - python3 -m py_compile src/google/adk/models/anthropic_llm.py tests/unittests/models/test_anthropic_llm.py - python3 -m pytest tests/unittests/models/test_anthropic_llm.py -k "wraps_anthropic_rate_limit_error" *(fails in this environment because the pytest interpreter is missing the package during collection)* Co-authored-by: George Weale <gweale@google.com> COPYBARA_INTEGRATE_REVIEW=#5401 from MukundaKatta:codex/adk-anthropic-rate-limit e08c51b PiperOrigin-RevId: 956692885
|
Thank you @MukundaKatta for your contribution! 🎉 Your changes have been successfully imported and merged via Copybara in commit cde301b. Closing this PR as the changes are now in the main branch. |
Merge google#5401 ## Summary - wrap Anthropic RateLimitError in a dedicated ADK exception with mitigation guidance - apply the wrapper consistently for both streaming and non-streaming Claude requests - add regression tests for both code paths ## Testing - python3 -m py_compile src/google/adk/models/anthropic_llm.py tests/unittests/models/test_anthropic_llm.py - python3 -m pytest tests/unittests/models/test_anthropic_llm.py -k "wraps_anthropic_rate_limit_error" *(fails in this environment because the pytest interpreter is missing the package during collection)* Co-authored-by: George Weale <gweale@google.com> COPYBARA_INTEGRATE_REVIEW=google#5401 from MukundaKatta:codex/adk-anthropic-rate-limit e08c51b PiperOrigin-RevId: 956692885
Summary
Testing