mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
docs(callbacks.md): add input callback to the callback docs
This commit is contained in:
parent
ab8093118b
commit
86a835f6fd
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Use Callbacks to send Output Data to Posthog, Sentry etc
|
||||
|
||||
liteLLM provides `success_callbacks` and `failure_callbacks`, making it easy for you to send data to a particular provider depending on the status of your responses.
|
||||
liteLLM provides `input_callbacks`, `success_callbacks` and `failure_callbacks`, making it easy for you to send data to a particular provider depending on the status of your responses.
|
||||
|
||||
liteLLM supports:
|
||||
|
||||
|
|
@ -20,6 +20,7 @@ liteLLM supports:
|
|||
from litellm import completion
|
||||
|
||||
# set callbacks
|
||||
litellm.input_callback=["sentry"] # for sentry breadcrumbing - logs the input being sent to the api
|
||||
litellm.success_callback=["posthog", "helicone", "llmonitor"]
|
||||
litellm.failure_callback=["sentry", "llmonitor"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue