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

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

Properties

optional
type: "function"

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