In this video tutorial, we'll walk through how to use GPT 3.5/4's new function calling capability. In particular, we'll discuss how to convert natural language into an API call at Financial Modeling Prep's stock screener endpoint.
As OpenAI writes:
Developers can now describe functions to gpt-4-0613 and gpt-3.5-turbo-0613, and have the model intelligently choose to output a JSON object containing arguments to call those functions.
This is a new way to more reliably connect GPT's capabilities with external tools and APIs.
In this example, we'll use the GPT model to both convert natural language into an API call and then summarize the results back the user.
This is the video companion to this article and includes all the code and a walkthrough of how to implement it.