Get started with OpenAI ChatGPT python APIs (2023 tutorial)

Опубликовано: 28 Сентябрь 2024
на канале: Generative AI - Tutorials
72
3

Learn to use chatGPT API to build AI applications in python. We will use the turbo-3.5 model and use the completions API. You will learn how to create API Keys, how to install OpenAI python library, how to construct the API call to OpenAI

Download the starter code on github: https://github.com/nisthana/chatgpt_t...
00:00 Introduction
00:16 Get started: Go to OpenAI.com
00:45 Create API secret key
01:18 Install openai python library
01:48 Add secret key as environment variable
02:12 Three things needed for the API call
02:42 Get started with the code
03:14 Run the first example
03:45 Second example
04:14 Importance of tokens