├── .eslintrc.json ├── .gitignore ├── .prettierignore ├── README.md ├── app ├── api │ ├── chat │ │ └── route.tsx │ └── test_api │ │ └── route.ts ├── favicon.ico ├── globals.css ├── layout.tsx └── page.tsx ├── components └── ui │ ├── button.tsx │ ├── card.tsx │ ├── chat │ ├── ChatWindow.tsx │ ├── MessageInput.tsx │ ├── assistantChat.tsx │ ├── chatBox.tsx │ ├── openaiAPIKeyInput.tsx │ └── userChat.tsx │ ├── input.tsx │ ├── scroll-area.tsx │ └── textarea.tsx ├── helpers ├── formatMessages.tsx └── langchainFormat.tsx ├── lib └── utils.ts ├── next-env.d.tsx ├── next.config.js ├── package.json ├── postcss.config.js ├── prettier.config.js ├── public ├── next.svg └── vercel.svg ├── tailwind.config.js └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | .next 4 | build -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/README.md -------------------------------------------------------------------------------- /app/api/chat/route.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/api/chat/route.tsx -------------------------------------------------------------------------------- /app/api/test_api/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/api/test_api/route.ts -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/app/page.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/card.tsx -------------------------------------------------------------------------------- /components/ui/chat/ChatWindow.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/ChatWindow.tsx -------------------------------------------------------------------------------- /components/ui/chat/MessageInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/MessageInput.tsx -------------------------------------------------------------------------------- /components/ui/chat/assistantChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/assistantChat.tsx -------------------------------------------------------------------------------- /components/ui/chat/chatBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/chatBox.tsx -------------------------------------------------------------------------------- /components/ui/chat/openaiAPIKeyInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/openaiAPIKeyInput.tsx -------------------------------------------------------------------------------- /components/ui/chat/userChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/chat/userChat.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/components/ui/textarea.tsx -------------------------------------------------------------------------------- /helpers/formatMessages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/helpers/formatMessages.tsx -------------------------------------------------------------------------------- /helpers/langchainFormat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/helpers/langchainFormat.tsx -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /next-env.d.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/next-env.d.tsx -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/prettier.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnRSandoval/NEXT.JS-LangChain-Starter-Kit/HEAD/tsconfig.json --------------------------------------------------------------------------------