xyhelper / chatgpt-share-server Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chatgpt-share-server.xyhelper.cn
License: MIT License
Home Page: https://chatgpt-share-server.xyhelper.cn
License: MIT License
请问一下,ChatGPT-Account-ID 是从哪里获取的,2.27 之后看到请求都为空,导致会话没法按用户写入。查不到用户的会话列表。
看了下之前的,是固定的一个uuid
浏览器插件里使用模型修改器修改4-mobile在本项目不生效,希望项目添加修改使用4mobile模型的功能
帐户多了,差不多24小时就需要重新编辑等待人机认证通过后,操作保存才可以继续使用,否则error
固定的A1管理只能操作账号B1。
这个功能感觉还是挺有用的,有点平台的味道了。
chatgpt-share-server的web ui中的对话删除后,原来的chatgpt账户中的对话依旧存在,能否实现同步删除?
API server listening at: 127.0.0.1:57021
debugserver-@(#)PROGRAM:LLDB PROJECT:lldb-1500.0.200.58
for arm64.
Got a connection, launched process /Users/lihang15/Library/Caches/JetBrains/IntelliJIdea2023.3/tmp/GoLand/_3go_build_backend (pid = 42771).
WARNING: undefined behavior - version of Delve is too old for Go version go1.22.0 (maximum supported version 1.21)
2024-03-08 01:46:52.077 [INFO] {50797a709c8cba17c79ed6289bcc2a26} CHATPROXY: https://demo.xyhelper.cn
2024-03-08 01:46:52.078 [INFO] {50797a709c8cba17c79ed6289bcc2a26} AUTHKEY: xyhelper
2024-03-08 01:46:52.078 [INFO] {50797a709c8cba17c79ed6289bcc2a26} ASSET_PREFIX: https://oaistatic-cdn.closeai.biz
2024-03-08 01:46:52.752 [INFO] {50797a709c8cba17c79ed6289bcc2a26} Get config From https://oaistatic-cdn.closeai.biz ,CacheBuildId: CdVKBysnaJNkqh-wcfYZ
2024-03-08 01:46:52.753 [INFO] {50797a709c8cba17c79ed6289bcc2a26} Get config From https://oaistatic-cdn.closeai.biz/template/CdVKBysnaJNkqh_-wcfYZ/index.txt
2024-03-08 01:46:53.420 [INFO] {50797a709c8cba17c79ed6289bcc2a26} CacheBuildId: CdVKBysnaJNkqh-wcfYZ
2024-03-08 01:46:54.155 [INFO] {50797a709c8cba17c79ed6289bcc2a26} BuildId: uFQkCP-fqpvXX_WWG3TaH
2024-03-08 01:46:54.155 [INFO] {50797a709c8cba17c79ed6289bcc2a26} PORT: 8001
2024-03-08 01:46:54.162 [DEBU] SetServerRoot path: /Users/lihang15/IdeaProjects/chatgpt-share-server/backend/resource/public
2024-03-08 01:46:54.162 [INFO] {50797a709c8cba17c79ed6289bcc2a26} OAUTH_URL: http://127.0.0.1:8001/auth/oauthfree
2024-03-08 01:46:54.162 [INFO] {50797a709c8cba17c79ed6289bcc2a26} AUDIT_LIMIT_URL:
2024-03-08 01:46:54.162 [INFO] {50797a709c8cba17c79ed6289bcc2a26} APIAUTH:
2024-03-08 01:46:54.163 [DEBU] {50797a709c8cba17c79ed6289bcc2a26} module cool init start ...
2024-03-08 01:46:54.163 [DEBU] {50797a709c8cba17c79ed6289bcc2a26} 当前运行模式 dev
2024-03-08 01:46:54.164 [DEBU] {50797a709c8cba17c79ed6289bcc2a26} 当前实例ID: 1mknz3bx030cznpfikt0vx4100dp0zln
2024-03-08 01:46:54.164 [DEBU] {50797a709c8cba17c79ed6289bcc2a26} 是否缓存模式: true
2024-03-08 01:46:54.164 [DEBU] {50797a709c8cba17c79ed6289bcc2a26} module cool init finished ...
panic: cannot find database driver for specified database type "mysql", did you misspell type name "mysql" or forget importing the database driver? possible reference: https://github.com/gogf/gf/tree/master/contrib/drivers [recovered]
panic: failed to connect database
goroutine 1 [running]:
github.com/cool-team-official/cool-admin-go/cool.InitDB.func1()
/Users/lihang15/go/pkg/mod/github.com/cool-team-official/cool-admin-go/[email protected]/initdb.go:21 +0x54
panic({0x10546b320?, 0x14000282690?})
/usr/local/go/src/runtime/panic.go:770 +0xf0
github.com/gogf/gf/v2/frame/gins.Database.func1()
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/frame/gins/gins_database.go:148 +0xfd0
github.com/gogf/gf/v2/container/gmap.(*StrAnyMap).doSetWithLockCheck(0x1400011f780, {0x14000039890, 0x22}, {0x105370000, 0x14000280740})
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/container/gmap/gmap_hash_str_any_map.go:219 +0x220
github.com/gogf/gf/v2/container/gmap.(*StrAnyMap).GetOrSetFuncLock(0x1400011f780, {0x14000039890, 0x22}, 0x14000280740)
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/container/gmap/gmap_hash_str_any_map.go:256 +0xbc
github.com/gogf/gf/v2/internal/instance.GetOrSetFuncLock({0x14000039890, 0x22}, 0x14000280740)
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/internal/instance/instance.go:65 +0x48
github.com/gogf/gf/v2/frame/gins.Database({0x14000530930, 0x1, 0x1})
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/frame/gins/gins_database.go:37 +0x29c
github.com/gogf/gf/v2/frame/g.DB({0x14000530930, 0x1, 0x1})
/Users/lihang15/go/pkg/mod/github.com/gogf/gf/[email protected]/frame/g/g_object.go:87 +0x38
github.com/cool-team-official/cool-admin-go/cool.InitDB({0x10518eba0, 0x7})
/Users/lihang15/go/pkg/mod/github.com/cool-team-official/cool-admin-go/[email protected]/initdb.go:24 +0xe8
github.com/cool-team-official/cool-admin-go/cool.getDBbyModel({0x1054f10a0, 0x140007ae4e0})
/Users/lihang15/go/pkg/mod/github.com/cool-team-official/cool-admin-go/[email protected]/initdb.go:43 +0xd4
github.com/cool-team-official/cool-admin-go/cool.CreateTable({0x1054f10a0, 0x140007ae4e0})
/Users/lihang15/go/pkg/mod/github.com/cool-team-official/cool-admin-go/[email protected]/initdb.go:56 +0x4c
backend/modules/chatgpt/model.init.0()
/Users/lihang15/IdeaProjects/chatgpt-share-server/backend/modules/chatgpt/model/chatgpt_conversations.go:39 +0x88
Exiting.
Debugger finished with the exit code 0
创建15分钟试用账号后,当超过15分钟再次登陆时,由于gfsession未失效导致仍可以继续使用账号。
https://github.com/xyhelper/chatgpt-share-server/blob/master/docs/config/apiauth.md
我根据文档配置config.yaml后,调用显示apiauth is error
大家是怎么配置的?
前端进入ChatGPT的页面之后,任意对话点复制按钮会报错:Failed to copy to clipboard. 且无法通过这个按钮复制对话到剪贴板。
这可能是来自OpenAI的报错通知,请问有没有解决方案?
参考: https://chatgpt-share-server.xyhelper.cn/config/resetpasswd.html
疑似程序获取的192开头的局域网ip导致?
报如下错误:
-
~/dockers/chatgpt-share (deploy*) # docker compose exec -it mysql bash root@luxury
bash-4.4# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
bash-4.4# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
搭建完成了,对话出现rate
server error
sessionkey不能自动更新了。需要手动操作么?
编译后运行提示
panic: cannot find database driver for specified database type "mysql", did you misspell type name "mysql" or forget importing the database driver? possible reference: https://github.com/gogf/gf/tree/master/contrib/drivers [recovered]
panic: failed to connect database
goroutine 1 [running]:
github.com/cool-team-official/cool-admin-go/cool.InitDB.func1()
一直找不到解决方案
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.