feat: add LiteLLM as AI gateway provider#203
Conversation
|
Thanks for the PR. I like the direction, but this is not enough for LiteLLM to be a first-class Row-Bot provider yet. Right now the change only adds a provider definition, includes it in A proper first-class provider needs all of the following:
Until this is implemented, LiteLLM is already supported in Row-Bot through the existing Custom OpenAI-compatible endpoint flow. Users can go to Settings -> Providers -> Custom Endpoints, add their LiteLLM base URL, and choose the So I’m going to request changes for now. Happy to review a fuller version that makes LiteLLM a true first-class provider rather than a thinner duplicate of the existing custom endpoint profile. |
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