Weights & Biases - Logging LLM Input/Output
Weights & Biases helps AI developers build better models faster https://wandb.ai
info
Pre-Requisites
Ensure you have run pip install wandb
for this integration
pip install wandb litellm
Quick Start
Use just 2 lines of code, to instantly log your responses across all providers with Langfuse
Get your Langfuse API Keys from https://cloud.langfuse.com/
litellm.success_callback = ["wandb"]
# pip install langfuse
import litellm
import os
os.environ["WANDB_API_KEY"] = ""
# LLM API Keys
os.environ['OPENAI_API_KEY']=""
# set langfuse as a callback, litellm will send the data to langfuse
litellm.success_callback = ["wandb"]
# openai call
response = litellm.completion(
model="gpt-3.5-turbo",
messages=[
{"role": "user", "content": "Hi 👋 - i'm openai"}
]
)
Support & Talk to Founders
- Schedule Demo 👋
- Community Discord 💭
- Our numbers 📞 +1 (770) 8783-106 / +1 (412) 618-6238
- Our emails ✉️ ishaan@berri.ai / krrish@berri.ai