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

feat: added observability for llm check #27

Merged

Conversation

sauravpanda
Copy link
Member

@sauravpanda sauravpanda commented Apr 6, 2024

Autogenerated PR Description

Pull Request Description

This pull request adds observability for litellm by introducing the ability to log success and failure callbacks to Supabase. It includes modifications to the configuration settings, addition of new features in the LLMProvider class, and updates to the chat_completion method. The changes aim to enhance observability and logging capabilities for the language model provider.

Motivation

The motivation behind these changes is to improve the observability of the language model provider, litellm, by enabling logging of success and failure callbacks to Supabase. This will provide better insights into the behavior and performance of the language model.

Potential Concerns

The addition of observability logging introduces a dependency on Supabase, which may require proper handling of environment variables and potential impact on the overall system performance. It's important to ensure that the logging functionality does not introduce any security vulnerabilities or performance bottlenecks.

Recommendations

It's recommended to thoroughly test the observability logging functionality, including handling of edge cases and error scenarios. Additionally, consider documenting the usage and configuration of the observability feature to facilitate future maintenance and troubleshooting.

-- Generated with love by Cloud Code AI

Original Description Added observability for litellm

@sauravpanda sauravpanda linked an issue Apr 6, 2024 that may be closed by this pull request
@sauravpanda sauravpanda merged commit 726faa5 into main Apr 7, 2024
2 checks passed
@sauravpanda sauravpanda deleted the 26-setup-observability-with-litellm-to-track-token-usage branch April 8, 2024 03:40
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.

Setup observability with litellm to track token usage
1 participant