import * as plugins from './plugins.js'; /** * Explicit settings: the SDK would otherwise take OPENAI_BASE_URL from the environment, and send * OPENAI_ORG_ID and OPENAI_PROJECT_ID with the key. */ export const createOpenAiClient = (apiKey: string) => new plugins.OpenAI({ apiKey, organization: null, project: null, baseURL: 'https://api.openai.com/v1', });