Skip to content

feat: implement LiteLLM-style SmartRouter with 429 failover (Issue #286)#447

Open
teaganholland08 wants to merge 1 commit intoarakoodev:tsfrom
teaganholland08:bounty-smart-router-286
Open

feat: implement LiteLLM-style SmartRouter with 429 failover (Issue #286)#447
teaganholland08 wants to merge 1 commit intoarakoodev:tsfrom
teaganholland08:bounty-smart-router-286

Conversation

@teaganholland08
Copy link
Copy Markdown

This PR implements the SmartRouter logic for the Python SDK as requested in #286.

Key Features:

ArakooRouter: A flexible router that takes a list of model configurations.

429 Failover: Automatically catches Rate Limit errors and switches to the next available provider in the list.

Exponential Backoff: Implements a 2 ** attempt sleep schedule (1s, 2s, 4s...) to respect provider limits during retries.

Closes #286.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Before we can accept your contribution, we ask that you sign the Arakoo Contributor License Agreement. You can sign the CLA by adding a new comment to this pull request and pasting exactly the following text.


I have read the Arakoo CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

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.

BOUNTY: Convert the endpoints to a smart router like litellm does in python

2 participants