Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/mod.ts>AssistantResponseFormat

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface AssistantResponseFormat
import { type AssistantResponseFormat } from "https://deno.land/x/openai@v4.39.0/resources/beta/mod.ts";

An object describing the expected output of the model. If json_object only function type tools are allowed to be passed to the Run. If text the model can return text or any value needed.

Properties

optional
type: "text" | "json_object"

Must be one of text or json_object.