mazzasaverio / nextjs-fastapi-your-chat Goto Github PK
View Code? Open in Web Editor NEWChat with any website using FastAPI, Next.js, and the latest LangChain version for seamless integration.
License: MIT License
Chat with any website using FastAPI, Next.js, and the latest LangChain version for seamless integration.
License: MIT License
EDIT: I figured out what my issue was... in package.json, it was calling python3
when I just needed it to call python
. This repo is teaching me a lot about frontend and node.js, thank you!
When I start the application with npm run dev
, The UI starts fine, but the fastapi server does not start because it can't find python. However I can start fastapi separately in another terminal, then start the UI and everything works great.... Another note, I also had to specify a GPT model in index.py
, line 110 llm = ChatOpenAI(model_name="gpt-4-0125-preview")
to avoid a token limit.
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. [1] npm run fastapi-dev exited with code 9009 [0] - wait compiling /page (client and server)... [0] Browserslist: caniuse-lite is outdated. Please run: [0] npx update-browserslist-db@latest [0] Why you should do it regularly: https://github.com/browserslist/update-db#readme [0] - event compiled client and server successfully in 2.8s (2156 modules) [0] - wait compiling... [0] - event compiled successfully in 289 ms (1812 modules) [0] Failed to proxy http://127.0.0.1:8000/api/scrape Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] } [0] - error Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] }
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.