Giter Club home page Giter Club logo

chatgpt-admin-web's Introduction

简体中文 | English

ChatGPT Admin Web

团队组织内共享使用人工智能的一站式解决方案。

CAW 是一个自托管网络应用程序,提供开箱即用的用户管理,包括后台界面以及可配置的支付计划和相关支付界面。

功能 Features

  • 🌈 可定制的外观
  • 👻 开箱即用的用户管理
  • 💰 付费方案配置,一键对接支付接口
  • 🔐 关键词过滤、替换保证文本安全

开始

配置及安装请查看文档

版本

版本 状态 备注
V3 长期支持 使用全新的技术栈重构
V2 弃用 存在设计缺陷
V1 不再更新 Redis数据库,可拓展性较差

更新日志

技术栈

Part Tech
Frontend Next.js
Backend Nest.js
Database PostgreSQL & Redis

更多技术细节:开发手册

项目动态

Alt

动态:Telegram Channel

贡献者

捐赠

感谢您的激励,能让该项目持续发展。

GitHub Sponsor | 爱发电

chatgpt-admin-web's People

Contributors

aprilnea avatar le0zh0u avatar perongh avatar rexjz avatar todaysolve avatar tomridder avatar yidadaa avatar zerlight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-admin-web's Issues

vercel 部署报错 No Output Directory named "public" found after the Build completed.

...writing to cache...

17:30:04.205 | Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
17:30:04.206 | Learn More: https://vercel.link/missing-public-directory
17:30:04.818 | Deployment completed
17:30:04.430 | STATIC_BUILD_NO_OUT_DIR: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.

image

INVITATION CODE 邀请代码

I do not know Chinese, Cantonese or Mandarin, so I am using google translate.

I do not understand how to propagate an invitation code for the user to log in. i do not know where i set these codes up or how to use them. I would like to turn off this feature, only if I can not use it properly.

我不懂中文、粤语或普通话,所以我使用谷歌翻译。

我不明白如何传播邀请码供用户登录。我不知道我在哪里设置这些代码或如何使用它们。 我想关闭这个功能,除非我不能正常使用它。

Screenshot 2023-05-12 113640

maigun免费账号发不了邮件?

Domain sandbox6b44e890a60d4618b9f134cfdc587002.mailgun.org is not allowed to send: Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings.

能否支持腾讯邮箱或者阿里邮箱呢?

大佬们,UpstashError这该怎么解决?

[SERVER ERROR] UpstashError: Unauthorized
at HttpClient.request (/var/task/apps/chat/.next/server/chunks/371.js:11258:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async JsonGetCommand.exec (/var/task/apps/chat/.next/server/chunks/371.js:5965:37)
at async UserDAL.readJSONProperty (/var/task/apps/chat/.next/server/chunks/38.js:82:17)
at async UserLogic.login (/var/task/apps/chat/.next/server/chunks/38.js:1133:30)
at async POST (/var/task/apps/chat/.next/server/app/api/user/login/route.js:177:14)
at async /var/task/apps/chat/.next/server/chunks/150.js:3458:33

按照说明文档配置好了Upstash的url和token

能否使用自建的redis?

Upstash默认免费账户不知道是不是缺少一些命令行执行权限。搭建了后台面板进去后,在日志里看到命令执行错误。
uture/route-modules/app-route/module.js:233:33) {"area":"order","action":"list"} error - UpstashError: ERR wrong number of arguments for 'json.mget' command at HttpClient.request (webpack-internal:///(sc_server)/../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/pkg/http.js:108:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async JsonMGetCommand.exec (webpack-internal:///(sc_server)/../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/pkg/commands/command.js:55:37) at async OrderDAL.listJSONValuesOfKeys (webpack-internal:///(sc_server)/../../packages/database/dist/dal/abstract.js:67:24) at async List (webpack-internal:///(sc_server)/./src/app/api/[area]/[action]/route.ts:16:20) at async GET (webpack-internal:///(sc_server)/./src/app/api/[area]/[action]/route.ts:68:20) at async eval (webpack-internal:///(sc_server)/../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/future/route-modules/app-route/module.js:233:33) {"area":"order","action":"list"} error - UpstashError: ERR wrong number of arguments for 'json.mget' command at HttpClient.request (webpack-internal:///(sc_server)/../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/pkg/http.js:108:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async JsonMGetCommand.exec (webpack-internal:///(sc_server)/../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/pkg/commands/command.js:55:37) at async OrderDAL.listJSONValuesOfKeys (webpack-internal:///(sc_server)/../../packages/database/dist/dal/abstract.js:67:24) at async List (webpack-internal:///(sc_server)/./src/app/api/[area]/[action]/route.ts:16:20) at async GET (webpack-internal:///(sc_server)/./src/app/api/[area]/[action]/route.ts:68:20) at async eval (webpack-internal:///(sc_server)/../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/future/route-modules/app-route/module.js:233:33)

出错了,稍后重试吧

按照教程配置,就是回答有问题:出错了,稍后重试吧!
捕获
查看日志,404
404
麻烦看看,谢谢

请问现在对普通用户有限制吗

我看充值界面显示每小时10次免费的回答,但是我新注册的账号超过10次了还是可以使用,注册的role是user,这个是什么问题?

Mask功能

老哥,这个版本没有Yda中那个Mask功能吗

楼主

楼主 问下文本审核的环境变量暂时不填写可以吗
因为百度 腾讯都要付费

新的error

直接对话没有问题
最近才出现的
报错日志如图
E95CCC92-340C-4628-87B8-1C3978ABFA81
279D6037-7FFB-4C8A-8ED4-B4FF3684F801
麻烦看下

在本地执行build命令时,出现export const config xxx/route.ts is deprecated

具体报错如下:

Error: `export const config` in /xxx/ChatGPT-Admin-Web/apps/chat/src/app/api/user/info/[part]/route.ts is deprecated. Please change `runtime` property to segment export config. See https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config

看了下关于runtime出现的地方:

export const config = {
  runtime: "edge",
};

这个不知道需要怎么处理

希望完善后台的部署文档

当我点击购买时没有任何反应,我猜测是因为从数据库读取价格的时候没有读取到,而这块的设置应该是在后台里面。

验证码无法发送

image
image
image
image
image
请问一下这是什么原因?环境变量和控制台报错均在上面截图中,我这边没有收到任何验证码

[CAW-22] [Bug] Error: React Hook "useSWR" is called conditionally

Building error信息如下:

[14:08:12.804] Running build in Washington, D.C., USA (East) – iad1
[14:08:12.873] Cloning github.com/VectorZhao/ChatGPT-Admin-Web (Branch: main, Commit: 74b0209)
[14:08:13.191] Previous build cache not available
[14:08:13.669] Cloning completed: 795.645ms
[14:08:14.040] Running "vercel build"
[14:08:14.718] Vercel CLI 29.2.0
[14:08:14.882] > Detected Turbo. Adjusting default settings...
[14:08:15.204] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[14:08:15.211] Running "install" command: `pnpm install`...
[14:08:15.938] Scope: all 7 workspace projects
[14:08:16.217] ../..                                    | Progress: resolved 1, reused 0, downloaded 0, added 0
[14:08:16.679] ../..                                    |    +1487 ++++++++++++++++++++++++++++
[14:08:17.218] ../..                                    | Progress: resolved 1487, reused 0, downloaded 4, added 0
[14:08:17.361] Packages are copied from the content-addressable store to the virtual store.
[14:08:17.362]   Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
[14:08:17.362]   Virtual store is at:             ../../node_modules/.pnpm
[14:08:18.229] ../..                                    | Progress: resolved 1487, reused 0, downloaded 66, added 61
[14:08:19.234] ../..                                    | Progress: resolved 1487, reused 0, downloaded 134, added 131
[14:08:20.238] ../..                                    | Progress: resolved 1487, reused 0, downloaded 196, added 191
[14:08:21.247] ../..                                    | Progress: resolved 1487, reused 0, downloaded 239, added 231
[14:08:22.252] ../..                                    | Progress: resolved 1487, reused 0, downloaded 310, added 306
[14:08:23.258] ../..                                    | Progress: resolved 1487, reused 0, downloaded 381, added 377
[14:08:24.275] ../..                                    | Progress: resolved 1487, reused 0, downloaded 427, added 421
[14:08:25.281] ../..                                    | Progress: resolved 1487, reused 0, downloaded 481, added 479
[14:08:26.288] ../..                                    | Progress: resolved 1487, reused 0, downloaded 560, added 555
[14:08:27.288] ../..                                    | Progress: resolved 1487, reused 0, downloaded 620, added 622
[14:08:28.290] ../..                                    | Progress: resolved 1487, reused 0, downloaded 626, added 629
[14:08:29.305] ../..                                    | Progress: resolved 1487, reused 0, downloaded 637, added 640
[14:08:30.315] ../..                                    | Progress: resolved 1487, reused 0, downloaded 673, added 672
[14:08:31.316] ../..                                    | Progress: resolved 1487, reused 0, downloaded 700, added 701
[14:08:32.318] ../..                                    | Progress: resolved 1487, reused 0, downloaded 726, added 726
[14:08:33.320] ../..                                    | Progress: resolved 1487, reused 0, downloaded 768, added 770
[14:08:34.319] ../..                                    | Progress: resolved 1487, reused 0, downloaded 811, added 809
[14:08:35.325] ../..                                    | Progress: resolved 1487, reused 0, downloaded 880, added 878
[14:08:36.331] ../..                                    | Progress: resolved 1487, reused 0, downloaded 926, added 925
[14:08:37.333] ../..                                    | Progress: resolved 1487, reused 0, downloaded 977, added 976
[14:08:38.333] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1053, added 1051
[14:08:39.346] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1079, added 1082
[14:08:40.351] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1158, added 1157
[14:08:41.351] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1200, added 1203
[14:08:42.360] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1234, added 1236
[14:08:43.433] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1260, added 1263
[14:08:44.436] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1335, added 1337
[14:08:45.443] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1393, added 1394
[14:08:46.555] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1464, added 1465
[14:08:47.555] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1473, added 1477
[14:08:48.558] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1474, added 1478
[14:08:50.203] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1475, added 1478
[14:08:51.203] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1477, added 1480
[14:08:52.203] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1479, added 1483
[14:08:54.003] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1480, added 1483
[14:08:55.003] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1481, added 1483
[14:08:56.003] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1483, added 1485
[14:08:58.293] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1483, added 1486
[14:08:59.293] ../..                                    | Progress: resolved 1487, reused 0, downloaded 1483, added 1487, done
[14:08:59.738] .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[14:08:59.739] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[14:08:59.831] .../node_modules/core-js-pure postinstall: Done
[14:08:59.903] .../[email protected]/node_modules/core-js postinstall: Done
[14:09:01.338] .../.pnpm/[email protected]/node_modules/turbo postinstall$ node install.js
[14:09:01.443] .../.pnpm/[email protected]/node_modules/turbo postinstall: Done
[14:09:02.243] 
[14:09:02.244] dependencies:
[14:09:02.244] + @edge-runtime/ponyfill 2.1.2
[14:09:02.244] + @edge-runtime/types 2.0.8
[14:09:02.244] + @svgr/webpack 6.5.1
[14:09:02.244] + @types/node 18.15.11
[14:09:02.244] + @types/react 18.0.28
[14:09:02.244] + @types/react-dom 18.0.11
[14:09:02.244] + @types/react-katex 3.0.0
[14:09:02.244] + @types/spark-md5 3.0.2
[14:09:02.244] + @upstash/redis 1.20.2
[14:09:02.244] + @vercel/analytics 0.1.11
[14:09:02.244] + array.prototype.at 1.1.1
[14:09:02.245] + bots 0.0.1 <- ../../packages/bots
[14:09:02.245] + cross-env 7.0.3
[14:09:02.245] + database 0.0.1 <- ../../packages/database
[14:09:02.245] + edge-runtime 2.1.2
[14:09:02.245] + emoji-picker-react 4.4.7
[14:09:02.245] + eslint 8.35.0
[14:09:02.245] + eslint-config-next 13.2.3
[14:09:02.245] + eventsource-parser 0.1.0
[14:09:02.245] + iron-session 6.3.1
[14:09:02.245] + next 13.3.1
[14:09:02.245] + openai 3.2.1
[14:09:02.245] + react 18.2.0
[14:09:02.245] + react-dom 18.2.0
[14:09:02.246] + react-markdown 8.0.5
[14:09:02.246] + rehype-katex 6.0.2
[14:09:02.246] + rehype-prism-plus 1.5.1
[14:09:02.246] + remark-breaks 3.0.2
[14:09:02.246] + remark-gfm 3.0.1
[14:09:02.246] + remark-math 5.1.1
[14:09:02.246] + sass 1.59.2
[14:09:02.246] + spark-md5 3.0.2
[14:09:02.246] + swr 2.1.3
[14:09:02.247] + tsconfig <- ../../packages/tsconfig
[14:09:02.248] + typescript 4.9.5
[14:09:02.248] + zod 3.21.4
[14:09:02.248] + zustand 4.3.6
[14:09:02.248] 
[14:09:02.248] Done in 46.9s
[14:09:02.294] Detected Next.js version: 13.3.1
[14:09:02.367] Running "npx turbo run build"
[14:09:03.106] • Packages in scope: chat
[14:09:03.106] • Running build in 1 packages
[14:09:03.106] • Remote caching enabled
[14:09:03.306] bots:build: cache miss, executing 9d861d151e385fe1
[14:09:03.311] database:build: cache miss, executing 462ea40c71b0a26a
[14:09:03.996] bots:build: 
[14:09:03.996] bots:build: > [email protected] build /vercel/path0/packages/bots
[14:09:03.996] bots:build: > tsc --build
[14:09:03.996] bots:build: 
[14:09:04.007] database:build: 
[14:09:04.007] database:build: > [email protected] build /vercel/path0/packages/database
[14:09:04.007] database:build: > tsc --build
[14:09:04.007] database:build: 
[14:09:08.419] chat:build: cache miss, executing 48c3b96425d73dd9
[14:09:09.075] chat:build: 
[14:09:09.076] chat:build: > [email protected] build /vercel/path0/apps/chat
[14:09:09.076] chat:build: > next build
[14:09:09.076] chat:build: 
[14:09:09.594] chat:build: warn  - You have enabled experimental feature (appDir) in next.config.js.
[14:09:09.595] chat:build: warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
[14:09:09.595] chat:build: info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
[14:09:09.595] chat:build: 
[14:09:09.618] chat:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
[14:09:09.618] chat:build: This information is used to shape Next.js' roadmap and prioritize features.
[14:09:09.618] chat:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[14:09:09.618] chat:build: https://nextjs.org/telemetry
[14:09:09.618] chat:build: 
[14:09:09.789] chat:build: info  - Creating an optimized production build...
[14:09:09.992] chat:build: warn  - `export const config` in /vercel/path0/apps/chat/src/app/api/user/info/[part]/route.ts is deprecated. Please change it to segment export config. See https://beta.nextjs.org/docs/api-reference/segment-config
[14:10:04.194] chat:build: warn  - Compiled with warnings
[14:10:04.194] chat:build: 
[14:10:04.194] chat:build: ../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/platforms/nodejs.js
[14:10:04.194] chat:build: A Node.js API is used (process.version at line: 44) which is not supported in the Edge Runtime.
[14:10:04.194] chat:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
[14:10:04.194] chat:build: 
[14:10:04.195] chat:build: Import trace for requested module:
[14:10:04.195] chat:build: ../../node_modules/.pnpm/@[email protected]/node_modules/@upstash/redis/esm/platforms/nodejs.js
[14:10:04.195] chat:build: ../../packages/database/dist/redis/client.js
[14:10:04.195] chat:build: ../../packages/database/dist/redis/index.js
[14:10:04.195] chat:build: ../../packages/database/dist/utils/ratelimit.js
[14:10:04.195] chat:build: ../../packages/database/dist/index.js
[14:10:04.195] chat:build: 
[14:10:04.203] chat:build: info  - Linting and checking validity of types...
[14:10:06.630] chat:build: Pages directory cannot be found at /vercel/path0/apps/chat/pages or /vercel/path0/apps/chat/src/pages. If using a custom path, please configure with the `no-html-link-for-pages` rule in your eslint config file.
[14:10:08.682] chat:build: 
[14:10:08.682] chat:build: Failed to compile.
[14:10:08.683] chat:build: 
[14:10:08.683] chat:build: ./src/hooks/use-invite-code.tsx
[14:10:08.683] chat:build: 18:31  Error: React Hook "useSWR" is called conditionally. React Hooks must be called in the exact same order in every component render.  react-hooks/rules-of-hooks
[14:10:08.683] chat:build: 
[14:10:08.683] chat:build: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[14:10:08.754] chat:build:  ELIFECYCLE  Command failed with exit code 1.
[14:10:08.781] chat:build: ERROR: command finished with error: command (/vercel/path0/apps/chat) pnpm run build exited (1)
[14:10:08.782] command (/vercel/path0/apps/chat) pnpm run build exited (1)
[14:10:08.783] 
[14:10:08.785]   Tasks:    2 successful, 3 total
[14:10:08.786]  Cached:    0 cached, 3 total
[14:10:08.786]    Time:    1m5.831s 
[14:10:08.786] Summary:    /vercel/path0/.turbo/runs/2PgHKsIl4HOHLB5OH6Y3vqcRnUx.json
[14:10:08.786] 
[14:10:08.786]  ERROR  run failed: command  exited (1)
[14:10:08.822] Error: Command "npx turbo run build" exited with 1
[14:10:09.714] Deployment completed
[14:10:09.267] BUILD_UTILS_SPAWN_1: Command "npx turbo run build" exited with 1

配置信息如下:

image
image

CAW-22

"购买"按钮无反应

作者晚上好,按照部署文档的教程一步一步来的

环境变量中已经填写了XUNHU_PAY_APPID、XUNHU_PAY_APPSECRET、DOMAIN。

但部署出来的前端中点击“购买”依旧无反应

【newbing error】but gpt-3.5-turbo is ok

when I using gpt-3.5-turbo model is right, but when change it to newbing model, I got this error

{"issues":[{"received":"newbing","code":"invalid_enum_value","options":["gpt-3.5-turbo","gpt-4"],"path":["model"],"message":"Invalid enum value. Expected 'gpt-3.5-turbo' | 'gpt-4', received 'newbing'"}],"name":"ZodError"}

My .env config file is like this

16833565122255

使用ELASTICE仍然不能接收到验证码

下图为vercel部署的环境变量image
其中key是在下图位置中生成的key
image
也设置模板了
image
设置的邮箱
_QXR_2WHW}GIR7K@PQFZUNI
不知道哪个环节出错了,vercel重新部署完还是接收不到验证码,希望有大佬能解惑,谢谢谢谢

邮箱Mailgun

大佬可以把教程文档完善下吗?
1.mailgun是不是必须要付费35$才能用?那两个要求填的Key值和邮箱域名在那个页面可以找到
2.短信文档是空的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.