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

x/openai/helpers/zod.ts

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
import * as openai from "https://deno.land/x/openai@v4.67.1/helpers/zod.ts";

Functions

Creates a chat completion function tool that can be invoked automatically by the chat completion .runTools() method or automatically parsed by .parse() / .stream().

Creates a chat completion JSONSchema response format object from the given Zod schema.