Skip to content

fix(llm): retry LiteLLM bad gateway errors#12117

Merged
neubig merged 2 commits intoOpenHands:mainfrom
majiayu000:fix/retry-bad-gateway
Dec 24, 2025
Merged

fix(llm): retry LiteLLM bad gateway errors#12117
neubig merged 2 commits intoOpenHands:mainfrom
majiayu000:fix/retry-bad-gateway

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Summary

  • add LiteLLM BadGatewayError to retry exception list
  • cover bad gateway retry behavior in LLM unit tests

Testing

  • pytest tests/unit/llm/test_api_connection_error_retry.py

Copy link
Copy Markdown
Contributor

@neubig neubig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@neubig neubig merged commit 36fe23a into OpenHands:main Dec 24, 2025
21 checks passed
@majiayu000
Copy link
Copy Markdown
Contributor Author

Happy to help.

@majiayu000 majiayu000 deleted the fix/retry-bad-gateway branch December 24, 2025 11:53
@saurya saurya linked an issue Feb 26, 2026 that may be closed by this pull request
1 task
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.

[Bug]: Bad Gateway in LiteLLM proxy causes agent to crash

2 participants