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

[AGE-159] Add integration with litellm for observability #1582

Closed
mmabrouk opened this issue Apr 28, 2024 · 1 comment · Fixed by #1603
Closed

[AGE-159] Add integration with litellm for observability #1582

mmabrouk opened this issue Apr 28, 2024 · 1 comment · Fixed by #1603
Assignees
Labels
enhancement New feature or request Task Created by Linear-GitHub Sync
Milestone

Comments

@mmabrouk
Copy link
Member

We would like to automatically instrument llm calls made with llm (without going through the ag.span). This would allow us to instrument all the informations in the call.
This would allow us also to provide a simple code snippets for people wanting to fetch the prompt and instrument it in their code base (not using the hosted app).

For this we need to add an integration with litellm.

First task is to see what options are there to integrate with litellm.

From SyncLinear.com | AGE-159

@mmabrouk mmabrouk added the Task Created by Linear-GitHub Sync label Apr 28, 2024
@dosubot dosubot bot added the enhancement New feature or request label Apr 28, 2024
@mmabrouk
Copy link
Member Author

mmabrouk commented May 1, 2024

Integration with litellm:

  • Inject our callback class (create custom handlers and use their handlers log_success_event, log_stream_event)
  • Litellm lets you track everything about the response. Success/error
  • Handling for sync and async is different

@mmabrouk mmabrouk modified the milestones: v.44, v.45 May 5, 2024
@mmabrouk mmabrouk modified the milestones: v.45, v.46 May 19, 2024
@mmabrouk mmabrouk modified the milestones: v.46, v.47, v.48 May 26, 2024
@mmabrouk mmabrouk reopened this Jun 6, 2024
@mmabrouk mmabrouk closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants