Text Models

Function Calling

Pass a tools array and set tool_choice to "auto" or a specific function name. The response schema — including finish_reason: "tool_calls" and the tool_calls array — matches the OpenAI spec. Whether a given model supports parallel or forced tool calls depends on the underlying provider.