npx create-next-app@latest --ts --tailwind --experimental-app chat
cd chat
# https://github.com/debug-js/debug/issues/912
npm install -S langchain debug supports-color@^8.1.1
# Don't forget to set your API_KEY!
# .env https://gist.github.com/shibanovp/2178a3e80d92d0ff2a9ce983b3c512ee
curl -so .env https://gist.githubusercontent.com/shibanovp/2178a3e80d92d0ff2a9ce983b3c512ee/raw/3147026b1c85112f929dd19e6ae51c4b4f57f11b/.env
# app/components/Chat.tsx https://gist.github.com/shibanovp/7a401e1d8d55a2df36322dcb626d4796
curl -so app/components/Chat.tsx --create-dirs https://gist.githubusercontent.com/shibanovp/7a401e1d8d55a2df36322dcb626d4796/raw/68202538b7eb6473b31c4ad0a1281f114edfa4b2/Chat.tsx
# app/components/ChatMessage.tsx https://gist.github.com/shibanovp/6f3e62bc3e4941135a1d4f3c48bcc8af
curl -so app/components/ChatMessage.tsx https://gist.githubusercontent.com/shibanovp/6f3e62bc3e4941135a1d4f3c48bcc8af/raw/856e4bb11ce08c3f43ddeedd23b5cf2f0bc32d16/ChatMessage.tsx
# app/page.tsx https://gist.github.com/shibanovp/83d4781ce8c08b4538d3924930135805
curl -so app/page.tsx https://gist.githubusercontent.com/shibanovp/83d4781ce8c08b4538d3924930135805/raw/6f2d0bffe6c64ce1fb78c7a240a21df485752cbf/page.tsx
# app/api/chat/route.ts https://gist.github.com/shibanovp/2f208becec6ef2fc1166c73594092c20
curl -so app/api/chat/route.ts --create-dirs https://gist.githubusercontent.com/shibanovp/2f208becec6ef2fc1166c73594092c20/raw/9ff22caad1ba1d50f2492528083024af77605b31/route.ts
npm run dev
Last active
June 22, 2023 16:45
-
-
Save shibanovp/b6eb3f2e717150bf36323952e394c0bb to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment