joschan21 / bookbuddy Goto Github PK
View Code? Open in Web Editor NEWA Helpful Customer Support Chatbot using GPT-4
A Helpful Customer Support Chatbot using GPT-4
Hey,
I just wanted to thank you for taking the time to make such great tutorials and sharing your knowledge. You are really getting me up to speed quickly on modern Next. Have you ever used Langchain? It's a super powerful library for working with LLMs, i've only used their Python version but I know they have a node version as well that should work great with Next. Maybe you could do a video incorporating langchain into a Next app? That would be great.
Cheers,
Jacob
A 504 timeout error was occurring on the serverless function, as it can only wait for a max of 10sec on hobby tier of vercel.
Then, I switched to edge functions on vercel. Hoping this would solve it with more speed and longer wait times.
But still I am encountering an EDGE TIMEOUT now. I am not sure how to fix it.
Please help, anyone !
Hi,
Great video! Thanks for creating it.
I notice that around 2:30 you add react-hot-toast and the handling of it. But you didn't add to your code.
So, the toast doesn't pop-up.
I added it to my ChatInput, like so:
return (
<div {...props} className={cn("border-t border-zinc-300", className)}>
<Toaster />
<div className="relative mt-4 flex-1 overflow-hidden rounded-lg border-none outline-none">
<TextareaAutosize
and it works great.
Maybe you can add it to the codebase for future developers.
Hey,
firstly I'm getting error in my ChatInput file. It is saying that -
Property 'isLoading' does not exist on type 'UseMutationResult<ReadableStream | null, Error, { id: string; text: string; isUserMessage: boolean; }, void>'.ts(2339)
even I tried copying the same code from the repo but it is still the same.
Secondly I'm getting the error 404 page not found every time, Even I tried fixing the isLoading error and I fixed it but still getting the same error 404. There is no other error in my any of the files just this. Please help! The code I used in ChatInput is same as it is in the repo!
log
> [email protected] build
> next build
info - Loaded env from E:\bookbuddy\.env
warn - You have enabled experimental feature (appDir) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
Failed to compile.
HookWebpackError: File E:\bookbuddy\.next\server\app\favicon.ico\route.js does not exist.
at makeWebpackError (E:\bookbuddy\node_modules\next\dist\compiled\webpack\bundle5.js:28:308185)
at E:\bookbuddy\node_modules\next\dist\compiled\webpack\bundle5.js:28:105236
at eval (eval at create (E:\bookbuddy\node_modules\next\dist\compiled\webpack\bundle5.js:13:28771), <anonymous>:57:1)
at E:\bookbuddy\node_modules\next\dist\compiled\webpack\bundle5.js:28:68649
at E:\bookbuddy\node_modules\next\dist\build\webpack\plugins\next-trace-entrypoints-plugin.js:420:143
-- inner error --
Error: File E:\bookbuddy\.next\server\app\favicon.ico\route.js does not exist.
at Job.emitDependency (E:\bookbuddy\node_modules\next\dist\compiled\@vercel\nft\index.js:1:39473)
at async Promise.all (index 6)
at async nodeFileTrace (E:\bookbuddy\node_modules\next\dist\compiled\@vercel\nft\index.js:1:35430)
at async E:\bookbuddy\node_modules\next\dist\build\webpack\plugins\next-trace-entrypoints-plugin.js:141:28
at async Span.traceAsyncFn (E:\bookbuddy\node_modules\next\dist\trace\trace.js:97:20)
at async TraceEntryPointsPlugin.createTraceAssets (E:\bookbuddy\node_modules\next\dist\build\webpack\plugins\next-trace-entrypoints-plugin.js:95:9)
caused by plugins in Compilation.hooks.processAssets
Error: File E:\bookbuddy\.next\server\app\favicon.ico\route.js does not exist.
at Job.emitDependency (E:\bookbuddy\node_modules\next\dist\compiled\@vercel\nft\index.js:1:39473)
at async Promise.all (index 6)
at async nodeFileTrace (E:\bookbuddy\node_modules\next\dist\compiled\@vercel\nft\index.js:1:35430)
at async E:\bookbuddy\node_modules\next\dist\build\webpack\plugins\next-trace-entrypoints-plugin.js:141:28
at async Span.traceAsyncFn (E:\bookbuddy\node_modules\next\dist\trace\trace.js:97:20)
at async TraceEntryPointsPlugin.createTraceAssets (E:\bookbuddy\node_modules\next\dist\build\webpack\plugins\next-trace-entrypoints-plugin.js:95:9)
> Build failed because of webpack errors
info - Creating an optimized production build .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.