#Did OpenAi had an update on Function Calling? The mapping is diferent...
1 messages · Page 1 of 1 (latest)
Hi @old cypress. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, OpenAI has made updates to the function calling feature. Here are some key points from the updates:
-
Deprecation of Parameters: The parameters named
functionsandfunction_callhave been deprecated in favor of usingtoolsandtool_choice. This change is reflected in the way function calling is configured and monitored, as seen in the function calling guide (https://platform.openai.com/docs/guides/function-calling). -
Structured Outputs: In June 2024, OpenAI introduced Structured Outputs, which can be enabled by setting
strict: truein your function definition. This ensures that the arguments generated by the model for a function call exactly match the JSON Schema you provided. More details can be found in the function calling guide (https://platform.openai.com/docs/guides/function-calling). -
Parallel Function Calling: Parallel function calling is supported on models released on or after November 6, 2023. This feature allows for more efficient function execution and is enabled by default, but can be disabled using
parallel_tool_calls: falsein the training example. -
Function Calling Use Cases: Function calling is useful for various applications, such as enabling AI assistants to fetch data, take actions, perform computations, and build rich workflows. These use cases are detailed in the function calling guide (https://platform.openai.com/docs/guides/function-calling).