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

x/openai/resources/chat/completions.ts>ChatCompletionNamedToolChoice

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
namespace ChatCompletionNamedToolChoice
import { ChatCompletionNamedToolChoice } from "https://deno.land/x/openai@v4.19.0/resources/chat/completions.ts";
interface ChatCompletionNamedToolChoice
import { type ChatCompletionNamedToolChoice } from "https://deno.land/x/openai@v4.19.0/resources/chat/completions.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.