Deploying a ChatGPT Clone to a Server Using the OpenAI API Part 2
In part two of this series, @CodeWithTomi shows how to use the OpenAI API to allow the user to have a conversation with the AI chatbot and how to deploy the application.
New to Cloud Computing? Get started here with a $100 credit!
Chapters:
0:00 Introduction
0:57 Enable Chat with AI Bot
1:35 Obtain OpenAI API Key
2:50 Create Prompt Function
5:40 Create Database to Store Conversations
7:30 Import User Model
7:50 Add App to Installed Apps
8:10 Make Migrations & Save
8:50 Add Model to Admin.py
9:30 Create Form
11:25 Pass Form Data to API
15:10 Code Response Prompt
17:20 Store Message & Response in Database
22:40 Retrieve User History
25:28 Deploy Django One Click on Akamai
27:00 Connect to Server
27:30 Install Git
28:50 Create New Repo
30:24 Push App to Git
31:40 Obtain GitHub Token
33:05 Import Project
35:00 Pull Changes
35:20 Update PostgreSQL Database
36:40 Install psycopg2
38:10 Run Migrations
39:20 Test Web App
40:45 Conclusion
Read the doc for more information on Django.
Learn more about PostgreSQL.
Subscribe to get notified of new episodes as they come out.
#AkamaiDeveloper #Django #postgresql #openai
Product: Akamai, Django, Postgres, OpenAI; @CodeWithTomi