Two new model snapshots, gpt-4-0613 and gpt-3.5-turbo-0613, arrived with an unglamorous but useful trick. Developers can now describe a function to them, and the models will produce a JSON object holding the arguments needed to call it.
That is function calling, announced as part of an OpenAI API update. InfoQ’s account of the announcement is dry, and so is the substance: the point is reliability. Earlier, getting structured data out of a chatbot meant coaxing it with prompts and hoping. Now, the models have been fine-tuned to spot when a function ought to be invoked and to answer in JSON that matches the function’s signature.
What it is for
OpenAI listed three uses. Chatbots can lean on external tools. Plain-language questions can be turned into database queries. And structured data can be pulled out of ordinary text. Aragon Research described it as a bridge between the models and outside APIs, which lets chatbots do things well beyond what they managed before.
The model does not run anything itself. According to OpenAI’s developer documentation, the flow runs in steps. An application sends a request along with the tools the model may call. The model replies with the call it wants made. The application runs that code and sends the output back in a second request, and the model gives its final answer, or asks for more tool calls.
A bigger window, too
The same announcement brought an enhanced variant of GPT-3.5-turbo with a considerably larger context window. The window is the amount of text, counted in tokens, that the model weighs before it writes more. A wider one means it can draw on more information when it responds.
InfoQ’s summary was that models able to reach external tools become more versatile instruments for real-world problems. Aragon’s was warmer: it called the feature a leap toward solving the long-standing difficulty of getting AI to work with outside systems.
Neither account says how many developers have tried it yet.
Sources
- OpenAI Announces Function Calling, Allowing Developers to Describe Functions
- Function calling | OpenAI API
- OpenAI Announces Function Calling for Its GPT-4 API





