-
Clone the entire repository
-
Show the diagram of what we’re building
- User workflow
- Show demo of the workflow
-
Start the frontend
- Overview of the frontend/backend components
- Should error since we haven’t started the backend yet.
-
Run the demo — Create a new file in the chalicelib/kitsune_1_chatbot.py/send_message_to_openai and run it locally.
- Write the function to get a single response from OpenAI GPT
kitsune_1_chatbot.py → send_message_to_openai
- Explain the function response
‼️ ‼️ ‼️ Phase 1: OpenAI Messages Endpoint ‼️ ‼️ ‼️
-
Integrate it into the backend
- Import the function into app.py
- Take the request from the user
-
Show in the frontend where it’s going to go.
- Explain the entire user workflow again
- Explain the
handleSubmit → goes to the URL
- Server receives a REQUEST and gets the parameters from the request body.
- It sends a call to OpenAI accordingly.
- We return the response with all the data
- The applicaiton renders everything in a template.
- Explain the
ChatMessages and MessageItem