mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 09:05:16 +00:00
docs(callbacks.md): add input callback to the callback docs
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user