Skip to content

Starter code for the gpt workshop working with OperAI assistant API

License

Notifications You must be signed in to change notification settings

broskicodes/gpt-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Workshop Starter Code

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.

Where to write code

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.

Couple things to note:

  • 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 it

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 :)

About

Starter code for the gpt workshop working with OperAI assistant API

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published