Integrate LangSmith observability with Portkey’s AI gateway for comprehensive LLM monitoring and advanced routing capabilities
LangSmith is LangChain’s observability platform that helps you debug, test, evaluate, and monitor your LLM applications. When combined with Portkey, you get the best of both worlds: LangSmith’s detailed observability and Portkey’s advanced AI gateway features.This integration allows you to:
Track all LLM requests in LangSmith while routing through Portkey
Use Portkey’s 1600+ LLM providers with LangSmith observability
Implement advanced features like caching, fallbacks, and load balancing
Maintain detailed traces and analytics in both platforms
Use Portkey’s config system for advanced features while tracking in LangSmith:
Copy
Ask AI
from portkey_ai import Portkeyfrom langsmith.wrappers import wrap_openai# Create a config in Portkey dashboard first, then reference itclient = wrap_openai(Portkey(api_key="YOUR_PORTKEY_API_KEY", config="your-config-id"))