litellm
litellm copied to clipboard
Logfire Integration
Tasks
- [x] Add tests
- [x] Documentation
Fixes #3414
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 | May 14, 2024 6:33pm |
@krrishdholakia What if users set multiple callbacks for the failure_handler? Shouldn't these check statements in failure_handler
be if
instead of elif
?
https://github.com/BerriAI/litellm/blob/main/litellm/utils.py#L2362
it's inside a for-loop, so it would work either way - let me know if you hit any issues
it's inside a for-loop, so it would work either way - let me know if you hit any issues
Oh yeah, please review this PR. I have changed elif
s to if
s it should not an issue as you just have said. Let me know if you want to revert that change to back.
@elisalimli can you add a screenshot of this passing your testing
@elisalimli can you add a screenshot of this passing your testing
pytest ./tests/test_logfire.py
Thanks @elisalimli
LGTM - just some cleanup, and we should be good to merge. Appreciate you adding the testing for this
Thanks @elisalimli