The Create Chat Completion parameters.
Options to pass for the HTTP request.
Optional headers?: Record<string, string>Optional proxy?: { host: string; port?: number | undefined; protocol?: "http" | "https" | undefined; auth?: { username: string; password: string; } | undefined; }The response from the OpenAI API. A ReadableStream if chatCompletionRequestParams.stream is set to true in the request, otherwise a JSON object.
Generated using TypeDoc
Sends a Create Chat Completion request to the OpenAI API.