Open link in next tab
OpenAI API
https://platform.openai.com/docs/guides/gpt/function-calling
Explore developer resources, tutorials, API docs, and dynamic examples to get the most out of OpenAI's platform.
There’s even a notebook with examples https://github.com/openai/openai-cookbook/blob/main/examples/How_to_call_functions_with_chat_models.ipynb