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

[Feature]: Improve LiteLLM Proxy Debug / Verbose Logs #1338

Closed
ishaan-jaff opened this issue Jan 6, 2024 · 5 comments
Closed

[Feature]: Improve LiteLLM Proxy Debug / Verbose Logs #1338

ishaan-jaff opened this issue Jan 6, 2024 · 5 comments
Labels

Comments

@ishaan-jaff
Copy link
Contributor

The Feature

Goal

  • I needed to ONLY see the original request, if 1 request failed why it failed (timeoutError), the next model it was falling back too

“LiteLLM verbose logs are not human readable “

Motivation, pitch

proxy user feedback

Twitter / LinkedIn details

No response

@shuther
Copy link

shuther commented Jan 16, 2024

I am using litellm in proxy mode and when I try:
litellm --logs as per https://litellm.vercel.app/docs/proxy_server
I am getting the error message:

Usage: litellm [OPTIONS]
Try 'litellm --help' for help.

Error: No such option: --logs (Possible options: --alias, --host, --local)

Is it still supported? Also there is no file api_logs.json in the current directory (while I do have errors showing up in the console)

@ishaan-jaff
Copy link
Contributor Author

this is deprecated @shuther it's on the old proxy docs. Are you just trying to view LLM input / output logs?

You can use our Langfuse calback https://litellm.vercel.app/docs/proxy/logging#logging-proxy-inputoutput---langfuse

@shuther
Copy link

shuther commented Jan 17, 2024

I am not sure that langfuse is solving the log problem; I want to capture DEBUG/INFO messages, not always prompt.
i.e. For test purposes, I setup langfuse with self hosting, and litellm hanged because the connection to the docker did not work (we could simulate network issue to the langfuse cloud offer). I think it is still important to copy some logs to a file ?
For langfuse, I am not sure if this call could happen in the background so it does not block the reply to the user?

@shuther
Copy link

shuther commented Jan 17, 2024

Also, do you support the environment variable LANGFUSE_HOST, I am getting some errors but I would like to confirm before I submit a bug report?

@krrishdholakia
Copy link
Contributor

Yes we do support LANGFUSE_HOST @shuther
Screenshot 2024-01-17 at 7 17 43 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants