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

Опубликовано: 29 Февраль 2024
на канале: 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


Смотрите видео Function Calling: How to get structured data from Chat-GPT? онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Thomas Janssen 29 Февраль 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 4,369 раз и оно понравилось 79 посетителям.