feat: add LiteLLM as AI gateway provider#203
Open
RheagalFire wants to merge 1 commit into
Open
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add LiteLLM as a built-in provider, giving users access to 100+ LLM providers (Anthropic, Azure, Bedrock, Vertex, Groq, Ollama, etc.) through a single OpenAI-compatible proxy.
LiteLLM proxy runs locally and translates requests to any supported provider's native format. Since it speaks OpenAI protocol, it reuses the existing
OPENAI_CHATtransport with zero new transport code.Changes:
src/row_bot/providers/catalog.py- addedlitellmProviderDefinition (base_url:http://localhost:4000/v1, transport:OPENAI_CHAT)src/row_bot/providers/runtime.py- addedlitellmto configured provider listtests/test_litellm_provider.py- 3 unit testsType of change
Risk area
Testing
python tests/test_suite.pypython tests/test_suite.py: 1143 pass, 103 fail (all pre-existing failures from missing optional depsniceguiandlanggraph.checkpoint.sqlite, unrelated to this change).Existing provider catalog tests: 41 passed (1 pre-existing nicegui failure).
Release notes
Users can now select LiteLLM as a provider and point it at their LiteLLM proxy (
http://localhost:4000) to access any of 100+ supported LLM providers.Checklist
main