NERDDISCO's picture
fix: added proper types when interacting with toOpenAi
35d05d3
raw
history blame
170 Bytes
import { Configuration, OpenAIApi } from "openai";
export const createClient = (apiKey: string): OpenAIApi => {
return new OpenAIApi(new Configuration({ apiKey }));
};