Skip to main content
Module

x/openai/resources/beta/chat/mod.ts>Completions#parse

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Completions.prototype.parse
import { Completions } from "https://deno.land/x/openai@v4.58.1/resources/beta/chat/mod.ts";

Type Parameters

Params extends ChatCompletionParseParams
optional
ParsedT = ExtractParsedContentFromParams<Params>

Parameters

body: Params
optional
options: Core.RequestOptions

Returns

Promise<ParsedChatCompletion<ParsedT>>