Get consistent JSON response from OpenAI / Chat-GPT

Опубликовано: 09 Декабрь 2023
на канале: Thomas Janssen
20,514
252

As from GPT-3.5- Turbo, Chat-GPT allows to set response_format as part of the parameters of an API call. But even using this parameter doesn't guarantee the response is in a consistent format. In this video I show how you can ensure a consistent response and how to avoid invalid JSON response because of insufficient tokens.

⭐️ Copy the source code here ⭐
🔗 https://tomstechacademy.com/code-exam...

⭐️ Links ⭐
🔗 Python Open File function: https://www.w3schools.com/python/pyth...
🔗 JSON Mode Documentation: https://platform.openai.com/docs/guid...

⭐️ Other helpful videos⭐
   • How to get an Open AI / Chat-GPT API ...  

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

#python #chatgpt #artificialintelligence


Смотрите видео Get consistent JSON response from OpenAI / Chat-GPT онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Thomas Janssen 09 Декабрь 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 20,514 раз и оно понравилось 252 посетителям.