docs(langfuse_integration.md): docs for showing how to log errors to langfuse

This commit is contained in:
Krrish Dholakia 2024-02-07 12:07:11 -08:00
parent 048acc8e68
commit 66913222a1

View file

@ -27,6 +27,7 @@ Use just 2 lines of code, to instantly log your responses **across all providers
Get your Langfuse API Keys from https://cloud.langfuse.com/
```python
litellm.success_callback = ["langfuse"]
litellm.failure_callback = ["langfuse"] # logs errors to langfuse
```
```python
# pip install langfuse