baseURL: "https://inference-api.openserv.ai" without /v1 and keep the top-level system field.
See SDK Integration and SDK Migration for Python, Vercel AI SDK, LangChain, and raw HTTP examples.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Move an OpenAI or Anthropic integration to SERV Reasoning.
const client = new OpenAI({
- apiKey: process.env.OPENAI_API_KEY,
+ apiKey: process.env.SERV_API_KEY,
+ baseURL: "https://inference-api.openserv.ai/v1",
});
baseURL: "https://inference-api.openserv.ai" without /v1 and keep the top-level system field.
See SDK Integration and SDK Migration for Python, Vercel AI SDK, LangChain, and raw HTTP examples.