LiteLLM allows developers to call all LLM APIs using the openAI format. LiteLLM Proxy is a proxy server to call 100+ LLMs in OpenAI format. Both are supported by this auto-instrumentation.
Any calls made to the following functions will be automatically captured by this integration:
-
completion()
-
acompletion()
-
completion_with_retries()
-
embedding()
-
aembedding()
-
image_generation()
-
aimage_generation()
Install#
Setup#
Connect your application to Phoenix with the register function:
Add any API keys needed by the models you are using with LiteLLM.
Run LiteLLM#
You can now use LiteLLM as normal and calls will be traces in Phoenix.
Observe#
Traces should now be visible in Phoenix!

