Prerequisite
To start using Instructor 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
Using Instructor, set the API Base 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 Instructor SDK..
base_url: https://api.orq.ai/v2/proxy
api_key: Your Orq API key