Skip to content

Implement LiteLLM #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2025
Merged

Implement LiteLLM #1294

merged 5 commits into from
Jun 25, 2025

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Jun 23, 2025

Call 100+ LLMs using the OpenAI Input/Output Format
Translate inputs to provider's completion, embedding, and image_generation endpoints Consistent output, text responses will always be available at ['choices'][0]['message']['content']

But the primary motivation for me to add LiteLLM was because of https://docs.litellm.ai/docs/batches so we don't have to maintain a large portion of #1290.

But maybe we can just use Instructor...
https://python.useinstructor.com/cli/batch/#create-from-file

@ahuang11 ahuang11 requested review from amaloney and philippjfr June 23, 2025 23:27
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 30.12048% with 58 lines in your changes missing coverage. Please review.

Project coverage is 58.31%. Comparing base (2983a93) to head (bf4cb20).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lumen/util.py 17.94% 32 Missing ⚠️
lumen/ai/llm.py 40.90% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1294      +/-   ##
==========================================
- Coverage   58.44%   58.31%   -0.14%     
==========================================
  Files         114      114              
  Lines       18238    18297      +59     
==========================================
+ Hits        10660    10670      +10     
- Misses       7578     7627      +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippjfr philippjfr merged commit b343518 into main Jun 25, 2025
12 checks passed
@philippjfr philippjfr deleted the litellm branch June 25, 2025 15:12
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.

2 participants