loo-y / geminichatup Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chatup.moca.one
Home Page: https://chatup.moca.one
你好,这个项目挺好的,不过部署到 Vercel 上,是不是可以考虑加一个密码验证的页面,验证不通过,不进入 Chat 页面,因为可能存在被滥用的问题,另外 Gemini 也有用量限制的。
或者在网页上提供一个输入 Key 的入口,让使用者自行输入 Key,然后保存到本地缓存中。
现在只要打开这个网站https://makersuite.google.com/app/apikey,就会重定向到https://makersuite.google.com/app/apikey,请问是否有解决方案?
不太清楚是什么原因。本来用nohup跑的。但是似乎几个小时内就消失了。多次测试都这样。现在改成了pm2。一天下来发现pm2统计他重启了16次。服务器性能应该是满足的。也没有高负载的状态。不清楚具体原因。pm2的log记录内容不多。看了下nohup的日志。具体如下
▲ Next.js 14.0.4
- Local: http://localhost:3008
- Environments: .env
warning package.json: "dependencies" has dependency "postcss" with range "8.4.28" that collides with a dependency in "devDependencies" of the same name with version "^8"
warning package.json: "dependencies" has dependency "tailwindcss" with range "3.3.3" that collides with a dependency in "devDependencies" of the same name with version "^3.3.0"
warning package.json: "dependencies" has dependency "typescript" with range "5.1.6" that collides with a dependency in "devDependencies" of the same name with version "^5"
✓ Ready in 4.2s
○ Compiling / ...
✓ Compiled / in 8.9s (2542 modules)
WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering
✓ Compiled in 2.2s (1258 modules)
○ Compiling /favicon.ico ...
✓ Compiled /favicon.ico in 1499ms (1312 modules)
○ Compiling /middleware ...
✓ Compiled /middleware in 868ms (75 modules)
○ Compiling /api/geminicontent ...
✓ Compiled /api/geminicontent in 724ms (197 modules)
Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
⨯ uncaughtException: Error: aborted
at abortIncoming (node:_http_server:793:17)
at socketOnClose (node:_http_server:787:3)
at Socket.emit (node:events:531:35)
at TCP. (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ECONNRESET'
}
WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering
WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering
WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering
WARNING: Panel defaultSize prop recommended to avoid layout shift after server rendering
问了下gpt。是因为3个版本的问题么?
本地部署的话,api应该填在哪里呢?env文件似乎没有模板。麻烦指教下。谢谢!
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.