# OpenAI function calling and API updates Source: https://openai.com/blog/function-calling-and-other-api-updates Kiwi News: https://news.kiwistand.com/stories/OpenAI-function-calling-and-API-updates?index=0x6489c5d3971f6d74a348ef2669fc6e1e9e8682c21ef2b99d15b13693e9623257da2976ae Submitted by matallo.eth on 2023-06-14 UTC, 2 upvotes, 0 comments ## Summary OpenAI announced that gpt-4-0613 and gpt-3.5-turbo-0613 can now be given function descriptions and will output a JSON object with arguments to call those functions, which it says is a more reliable way to connect GPT with external tools and APIs. The models were fine-tuned to detect when a function is needed and to respond with JSON matching the function signature, enabled through the new functions and function_call parameters in the /v1/chat/completions endpoint. The company also extended support for gpt-3.5-turbo-0301, gpt-4-0314 and gpt-4-32k-0314 until at least June 13, 2024, instead of the previously scheduled September 13, 2023 sunset. OpenAI notes that a proof-of-concept exploit shows untrusted tool output can instruct the model to take unintended actions, and recommends developers use only trusted tools and add user confirmation before actions with real-world impact.