baseURL for its OpenAI adapter.
Developer Docs
LlamaIndex
LlamaIndex supports configuring a custom OpenAI-compatible
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
baseURL for its OpenAI adapter.
import { Settings } from "llamaindex";
import { OpenAI } from "@llamaindex/openai";
Settings.llm = new OpenAI({
model: "gpt-4.1",
temperature: 0.2,
apiKey: process.env.LLMGRID_API_KEY,
baseURL: "https://api.llmgrid.ai/v1",
});
``
