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

x/openai/resources/chat/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.29.0/resources/chat/mod.ts";
interface ChatCompletionNamedToolChoice
import { type ChatCompletionNamedToolChoice } from "https://deno.land/x/openai@v4.29.0/resources/chat/mod.ts";

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

Properties

type: "function"

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