├── .eslintrc.json ├── .gitignore ├── README.md ├── api ├── assistants.ts ├── files.ts ├── messages.ts ├── models.ts ├── runs.ts ├── threads.ts └── vision.ts ├── components ├── CreateOrEditAssistantDialog.tsx ├── Editor.tsx ├── FileTabs.tsx ├── NavBar.tsx ├── OpenInSandboxButton.tsx ├── Preview.tsx ├── PromptBar.tsx ├── SelectAssistantDialog.tsx ├── ThemeSwitcher.tsx └── Timeline.tsx ├── context ├── AssistantContext.tsx ├── ColorSchemeContext.tsx └── ModelsContext.tsx ├── data ├── assistants.ts ├── sandpack.ts └── types.ts ├── lib └── openai.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── assistants │ │ ├── [assistant_id] │ │ │ └── index.ts │ │ └── index.ts │ ├── models │ │ └── index.ts │ ├── threads │ │ ├── [thread_id] │ │ │ ├── messages │ │ │ │ ├── [message_id] │ │ │ │ │ ├── files │ │ │ │ │ │ ├── [file_id].ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ └── runs │ │ │ │ ├── [run_id] │ │ │ │ ├── cancel.ts │ │ │ │ ├── index.ts │ │ │ │ ├── steps │ │ │ │ │ ├── [step_id].ts │ │ │ │ │ └── index.ts │ │ │ │ └── submit_tool_outputs.ts │ │ │ │ └── index.ts │ │ ├── index.ts │ │ └── runs │ │ │ └── index.ts │ └── vision │ │ └── index.ts ├── index.tsx └── main.tsx ├── postcss.config.js ├── public ├── favicon.ico └── vercel.svg ├── spectrum-preset.js ├── styles ├── Home.module.css └── globals.css ├── tailwind.config.js ├── tsconfig.json ├── utils └── utils.ts └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/README.md -------------------------------------------------------------------------------- /api/assistants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/assistants.ts -------------------------------------------------------------------------------- /api/files.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/files.ts -------------------------------------------------------------------------------- /api/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/messages.ts -------------------------------------------------------------------------------- /api/models.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/models.ts -------------------------------------------------------------------------------- /api/runs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/runs.ts -------------------------------------------------------------------------------- /api/threads.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/threads.ts -------------------------------------------------------------------------------- /api/vision.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/api/vision.ts -------------------------------------------------------------------------------- /components/CreateOrEditAssistantDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/CreateOrEditAssistantDialog.tsx -------------------------------------------------------------------------------- /components/Editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/Editor.tsx -------------------------------------------------------------------------------- /components/FileTabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/FileTabs.tsx -------------------------------------------------------------------------------- /components/NavBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/NavBar.tsx -------------------------------------------------------------------------------- /components/OpenInSandboxButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/OpenInSandboxButton.tsx -------------------------------------------------------------------------------- /components/Preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/Preview.tsx -------------------------------------------------------------------------------- /components/PromptBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/PromptBar.tsx -------------------------------------------------------------------------------- /components/SelectAssistantDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/SelectAssistantDialog.tsx -------------------------------------------------------------------------------- /components/ThemeSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/ThemeSwitcher.tsx -------------------------------------------------------------------------------- /components/Timeline.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/components/Timeline.tsx -------------------------------------------------------------------------------- /context/AssistantContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/context/AssistantContext.tsx -------------------------------------------------------------------------------- /context/ColorSchemeContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/context/ColorSchemeContext.tsx -------------------------------------------------------------------------------- /context/ModelsContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/context/ModelsContext.tsx -------------------------------------------------------------------------------- /data/assistants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/data/assistants.ts -------------------------------------------------------------------------------- /data/sandpack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/data/sandpack.ts -------------------------------------------------------------------------------- /data/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/data/types.ts -------------------------------------------------------------------------------- /lib/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/lib/openai.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/assistants/[assistant_id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/assistants/[assistant_id]/index.ts -------------------------------------------------------------------------------- /pages/api/assistants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/assistants/index.ts -------------------------------------------------------------------------------- /pages/api/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/models/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/messages/[message_id]/files/[file_id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/messages/[message_id]/files/[file_id].ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/messages/[message_id]/files/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/messages/[message_id]/files/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/messages/[message_id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/messages/[message_id]/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/messages/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/messages/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/[run_id]/cancel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/[run_id]/cancel.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/[run_id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/[run_id]/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/[run_id]/steps/[step_id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/[run_id]/steps/[step_id].ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/[run_id]/steps/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/[run_id]/steps/index.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/[run_id]/submit_tool_outputs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/[run_id]/submit_tool_outputs.ts -------------------------------------------------------------------------------- /pages/api/threads/[thread_id]/runs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/[thread_id]/runs/index.ts -------------------------------------------------------------------------------- /pages/api/threads/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/index.ts -------------------------------------------------------------------------------- /pages/api/threads/runs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/threads/runs/index.ts -------------------------------------------------------------------------------- /pages/api/vision/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/api/vision/index.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/pages/main.tsx -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /spectrum-preset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/spectrum-preset.js -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/utils/utils.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reidbarber/gen-ui/HEAD/yarn.lock --------------------------------------------------------------------------------