Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>OpenAI#createAssistant

OpenAI API wrapper for deno.
Latest
method OpenAI.prototype.createAssistant
import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Create an assistant with a model and instructions.

Parameters

model: string

ID of the model to use.

You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.

optional
params: CreateAssistantParams

Optional parameters for the API.

Returns

Promise<Assistant>

An assistant object.