Prerequisite
To start using Langchain with Orq, you need an API Key ready within your Orq.ai account.To setup your API key, see API keys & Endpoints.
To use libraries with private models, see Onboarding Private Models.
Using Orq.ai as AI Gateway
While using the Langchain SDK, set the Base URL to the AI Gateway to feed calls through our API without changing any other part of your code. Using the Orq.ai AI Gateway, you benefit from the Platform Traces, Cost and Usage Monitoring, keeping full compatibility and a unified API with all models while using the Langchain SDK.
base_url: https://api.orq.ai/v2/proxy
api_key: your Orq API key
langchain_openai library.
What’s Next Start tracing LangChain and LangGraph with OpenTelemetry