export declare const openAIStreamReducer: { initialState: { id: string; object: string; created: number; model: string; choices: { index: number; message: { role: string; content: string; function_call: null; }; finish_reason: null; }[]; usage: null; }; reduceFn: (state: any, chunk: any) => any; }; export declare function makeOpenAIChatCompletionsOp(originalCreate: any, name: string): import("../opType").Op<(...args: unknown[]) => Promise>; export declare function makeOpenAIImagesGenerateOp(originalGenerate: any): import("../opType").Op<(...args: unknown[]) => Promise>; interface OpenAIAPI { chat: { completions: { create: any; }; }; images: { generate: any; }; beta: { chat: { completions: { parse: any; }; }; }; } /** * Wraps the OpenAI API to enable function tracing for OpenAI calls. * * @example * const openai = wrapOpenAI(new OpenAI()); * const result = await openai.chat.completions.create({ * model: 'gpt-3.5-turbo', * messages: [{ role: 'user', content: 'Hello, world!' }] * }); */ export declare function wrapOpenAI(openai: T): T; export {}; //# sourceMappingURL=openai.d.ts.map