Skip to content
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

(litellm sdk - perf improvement) - optimize pre_call_check #7673

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

ishaan-jaff
Copy link
Contributor

@ishaan-jaff ishaan-jaff commented Jan 10, 2025

(litellm sdk - perf improvement) - optimize pre_call_check

  • this was heavy CPU work that was being done even when debug mode was off
  • only need to do if user is in debug mode

Relevant issues

#7544

Type

🧹 Refactoring
✅ Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locally

If UI changes, send a screenshot/GIF of working UI fixes

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 6:32pm

@ishaan-jaff ishaan-jaff changed the title (litellm sdk - perf improvement) - optimize response_cost_calculator (litellm sdk - perf improvement) - optimize pre_call_check Jan 10, 2025
@ishaan-jaff ishaan-jaff merged commit 9174a6f into main Jan 10, 2025
30 of 31 checks passed
rajatvig pushed a commit to rajatvig/litellm that referenced this pull request Jan 16, 2025
…#7673)

* latency fix - litellm sdk

* fix linting error

* fix litellm logging
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.

1 participant