Create chat completions with function calling capabilities
Enable the model to call functions and use external tools during chat completions.
gpt-4, gpt-4-turbo, gpt-4onone, auto, required, or specify a function.| Value | Description |
|---|---|
none | Model will not call any tools |
auto | Model decides whether to call tools (default) |
required | Model must call one or more tools |
{"type": "function", "function": {"name": "my_function"}} | Force a specific function |
gpt-4gpt-4-turbogpt-4ogpt-4o-minigpt-3.5-turbo