import type { Classification, ClassificationParamsWithExamples, ClassificationParamsWithFile, Completion, CompletionParams, Engine, EngineList, FileList, SearchList, SearchParamsWithDocuments, SearchParamsWithFile } from "./types"; import { Answer, AnswerParamsWithDocuments, AnswerParamsWithFile } from "."; export interface ClientOptions { /** * API key in an Authorization HTTP header * https://beta.openai.com/docs/api-reference/authentication */ apiKey?: string; /** * Count against the specified organization's subscription quota. * https://beta.openai.com/docs/api-reference/requesting-organization */ organization?: string; } export declare class Client { #private; constructor(options?: ClientOptions); /** * https://beta.openai.com/docs/api-reference/engines */ readonly engines: { list: () => Promise; retrieve: (engineId: string) => Promise; }; /** * https://beta.openai.com/docs/api-reference/completions * TODO: support create completions via GET */ readonly completions: { create: (engineId: string, requestBody: CompletionParams) => Promise; }; /** * https://beta.openai.com/docs/api-reference/searches */ readonly search: { create: (engineId: string, requestBody: SearchParamsWithDocuments | SearchParamsWithFile) => Promise; }; /** * @beta * https://beta.openai.com/docs/api-reference/classifications */ readonly classifications: { create: (requestBody: ClassificationParamsWithExamples | ClassificationParamsWithFile) => Promise; }; /** * @beta * https://beta.openai.com/docs/api-reference/answers */ readonly answers: { create: (requestBody: AnswerParamsWithDocuments | AnswerParamsWithFile) => Promise; }; /** * TODO: upload, retrieve, delete * https://beta.openai.com/docs/api-reference/files */ readonly files: { list: () => Promise; }; /** * @beta * TODO * https://beta.openai.com/docs/guides/fine-tuning */ private fetch; } //# sourceMappingURL=client.d.ts.map