From the course: OpenAI API: Function Calling
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Understanding function calling with the OpenAI API - OpenAI API Tutorial
From the course: OpenAI API: Function Calling
Understanding function calling with the OpenAI API
- Let's start at the very top by stating the obvious. Large language models like GPT are really chatty. So when you interact with the OpenAI API out of the box, you get a conversational exchange, similar to what you get with ChatGPT. You input human language prompts, and the system provides a human language response, which is useful if you're looking for a human language response, but not very useful if you're trying to build software around the response because the AI response is unstructured language and non-deterministic, meaning it'll be different every time. For software to work, we need predictable, structured, deterministic responses. Function calling unlocks this type of advanced integration between AI systems and your software. You the developer, define what types of prompts should result in a function call with a structured data response and what that structured data response should look like. And the AI detects…