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

x/openai/resources/mod.ts>ChatCompletionNamedToolChoice

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

Specifies a tool the model should use. Use to force the model to call a specific function.

Properties

function: ChatCompletionNamedToolChoice.Function
type: "function"

The type of the tool. Currently, only function is supported.