-
Notifications
You must be signed in to change notification settings - Fork 8
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
add log10 callback for litellm compeltion and examples #132
Conversation
b1de251
to
366115d
Compare
"content": [ | ||
{ | ||
"type": "image_url", | ||
"image_url": {"url": f"data:{image_media_type};base64,{image_data}"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: think you can send urls, too. But no biggie
log10/litellm.py
Outdated
self.log_end(run["completion_id"], response_obj.dict(), duration) | ||
|
||
def log_failure_event(self, kwargs, response_obj, start_time, end_time): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be useful to hook this one up too and use the failure fields we have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hooked up for log_failure_event and the async version of it.
3629a06
to
8498f60
Compare
Use:
screenshot of log from running example
examples/logging/litellm_image.py