Baseten · Schema

ChatCompletionNamedToolChoiceParam

Forces the model to call a specific function.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
function object The function to call.
type string The type, always `function`.
View JSON Schema on GitHub

JSON Schema

baseten-chatcompletionnamedtoolchoiceparam-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionNamedToolChoiceParam",
  "title": "ChatCompletionNamedToolChoiceParam",
  "additionalProperties": false,
  "properties": {
    "function": {
      "$ref": "#/components/schemas/ChatCompletionNamedFunction",
      "description": "The function to call."
    },
    "type": {
      "const": "function",
      "default": "function",
      "title": "Type",
      "type": "string",
      "description": "The type, always `function`."
    }
  },
  "required": [
    "function"
  ],
  "type": "object",
  "description": "Forces the model to call a specific function."
}