65567a2 2f65818 35d05d3 2f65818
1
2
3
4
5
6
import { Configuration, OpenAIApi } from "openai"; export const createClient = (apiKey: string): OpenAIApi => { return new OpenAIApi(new Configuration({ apiKey })); };