From the course: Build with AI: LLM-Powered Applications with Streamlit
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
How to connect to OpenAI API - Python Tutorial
From the course: Build with AI: LLM-Powered Applications with Streamlit
How to connect to OpenAI API
- [Narrator] Whether you're building an AI-powered chatbot or generating tech summaries, the first step is to connect your application to the OpenAI API. This will allow you to leverage AI to take your streamlet application to the next level. Start by creating an account with OpenAI. You can go to the URL platform.openai.com/signup to create your account. Once you're here, you can sign up using an email address, a Google account, a Microsoft account, or even with Apple. If you already have an account, you can simply click here to log in. Once you sign up or log in, you should be brought to this overview page where you could see information such as quickstart information. You can browse the different models and various tools to help you start building with the OpenAI API. If you go over to the left here, you can see the quickstart information. So again, provides you information of how to potentially use this. You could toggle this to Python and it'll show you information of generally…
Contents
-
-
-
-
(Locked)
What are large language models (LLMs)?3m 31s
-
(Locked)
What is retrieval-augmented generation (RAG)?3m 21s
-
(Locked)
Guidelines for working with AI and APIs3m 43s
-
(Locked)
How to connect to OpenAI API7m 58s
-
(Locked)
Send user prompts to an LLM and display the response13m 34s
-
(Locked)
Save and display chat history in your application5m 9s
-
(Locked)
-
-
-