Hello and welcome! In this repo you will be able to find the starter (and completed) code for the GPT Workshop.
To get started, please fork the repo using the button in the top right corner. Once you have your own copy of it you will need to clone the repo so that you can edit the code on your local machine.
I have made videos with instructions for walking you through the entire process of completing the workshop. From setting up your OpenAI account to deploying your assistant application with Vercel. They can be found in the tutorial
folder. I recommend that you watch them in order as you progress through the workshop.
All files that require edits are in the /pages/api/assistants
directory. Specifically they are listed as follows:
assistants/[id]/index.ts
assistants/threads/index.ts
assistants/threads/[thread_id]/index.ts
assistants/threads/[thread_id]/messages.ts
assistants/threads/[thread_id]/runs/index.ts
assistants/threads/[thread_id]/runs/[id]/index.ts
assistants/threads/[thread_id]/runs/[id]/cancel.ts
Each file as TODO
items listed in it. Once you have completed them all you should be able to test your assistant with yarn dev
then opening localhost:3000
in your browser.
- The front-end used for this workshop is forked from Chatbot-UI written by McKay Wrigley. Feel free to show him some support!
- A working implementation of the finished product can be found and tested at this link. Feel free to try it out yourself
- This repo was created to facilitate a live workshop that happened on December 21th 2023, but you should be able to complete it asynchronously using the recorded videos. If you have any questions about what to do please feel free to ping me on Twitter @_broskitweets
That's all from me for now. For any other inquiries ping me on twitter @_broskitweets.
Hope you enjoy the workshop! Good luck, have fun :)