Skip to content

andersr/structured-response-demo

Repository files navigation

Structured Response Demo

This is a demo app for the following blog posts:

View demo app

Running the app locally

  1. Clone this repo, run npm install
  2. Go to OpenAI, create an Assistant (see below).
  3. Go to Upstash, and create a Redis database.
  4. Make a copy of the .env.example file and rename it to .env
  5. Add the api keys, assistant Ids, etc listed in the .env file.
  6. Run npm run dev to run the app locally

Assistants Admin

  • Create assistants: npm run asst:create - this will create an assistant for each environment in OpenAI and store the respective ids from OpenAi in upstash, using the assistant name as a a key.
  • Update assistants: npm run asst:update - this will update the "development" assistant based on local config changes.
  • "Deploy" assistants: npm run asst:deploy - this will update the assistants for all environments, including production.

About

Demo of using an assistant structured response to generate app features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published