Integrate Helicone today with one line of code
POST https://api.openai.com/v1
POST https://oai.helicone.ai/v1
import openai openai.api_base = "https://oai.helicone.ai/v1"
basePath
Configuration:
import { Configuration, OpenAIApi } from "openai"; const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration);
import { Configuration, OpenAIApi } from "openai"; const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, basePath: "https://oai.helicone.ai/v1", }); const openai = new OpenAIApi(configuration);
Was this page helpful?