Function Calling: How to get structured data from Chat-GPT?

Published: 29 February 2024
on channel: Thomas Janssen
4,369
79

Do you want to call the Chat-GPT API and get back structure data? In that case you have to use Function Calling. This will allow you to get back Chat-GPT's response in JSON format, so you can use it in your application.

In this video I'll show you the easiest way to use function calling in order to get structured data from the API response.

⭐️ Libraries to install ⭐
pip install openai
pip install dotenv

⭐️Your API Key ⭐
In .env type the following:
OPENAI_API_KEY= 'sk-[YOUR API KEY]'

⭐️ Download the source code ⭐
https://tomstechacademy.com/code-exam...

⭐️ Follow me ⭐
💼 LinkedIn:   / thomas--janssen  
✅ Instagram:   / tomstechacademy  

❗ Some of my videos contain affiliate links. When you click on these kind of links, I get a small percentage in case you make a purchase via the website. Be aware that this doesn't cost you anything - you never pay more than the standard retail price.

#chatgpt #chatgptapi #openai #python #pythonprogramming


Watch video Function Calling: How to get structured data from Chat-GPT? online, duration hours minute second in high quality that is uploaded to the channel Thomas Janssen 29 February 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,369 times and liked it 79 visitors.