Coder Social home page Coder Social logo

chatpire / chatgpt-web-share Goto Github PK

View Code? Open in Web Editor NEW
4.0K 32.0 640.0 4.04 MB

ChatGPT Plus 共享方案。ChatGPT Plus / OpenAI API sharing solution.

Home Page: https://cws-docs.pages.dev/zh/

License: GNU General Public License v3.0

Dockerfile 0.09% Python 32.28% TypeScript 27.16% HTML 0.14% Vue 39.42% Shell 0.12% Mako 0.07% CSS 0.14% JavaScript 0.59%
chatgpt chatgpt-api chatgpt-app fastapi vue gpt-4

chatgpt-web-share's Introduction

ChatGPT Web Share

GitHub tag (latest by date) Github Workflow Status License

适用于个人、组织或团队的 ChatGPT 共享方案。共享一个 ChatGPT Plus 账号给多人使用,提供完善的管理和限制功能。

English Readme

文档

Important

部署 CWS 需要海外 VPS。项目文档内推荐了一些高性价比的服务器,低至 $11/年。请移步:VPS推荐

Note

(广告)【长期有效】推荐拼车服务:Aizex 合租面板

优美UI | 正价Plus | 会话隔离 | 号池模式 | 负载均衡 | 网页功能齐全 | 三网 cn2 直连优化

运营一年,值得信赖

声明

本项目仅供学习和研究使用,不鼓励用于商业用途。您应当知悉使用本项目可能会违反相关用户协议,并了解相关的风险。我们不对任何因使用本项目而导致的任何损失负责。

chatgpt-web-share's People

Contributors

exuan avatar funny-cat-happy avatar huoxingyongren avatar maxduke avatar moeakwak avatar rogerpu avatar shpirt avatar sleikang avatar sola97 avatar turfintl avatar undozen avatar yiikings avatar yongman avatar zzzerow 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

chatgpt-web-share's Issues

docker error

with util.safe_reraise():

File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in exit
raise exc_value.with_traceback(exc_tb)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 901, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 641, in connect
return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 580, in connect
return self.loaded_dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/dialects/sqlite/aiosqlite.py", line 305, in connect
await_only(connection),
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 102, in await_only
return current.driver.switch(awaitable) # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 160, in greenlet_spawn
value = await result
File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 145, in _connect
self._connection = await future
File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 110, in run
result = function()
File "/usr/local/lib/python3.10/site-packages/aiosqlite/core.py", line 405, in connector
return sqlite3.connect(loc, **kwargs)
sqlite3.OperationalError: unable to open database file

提示数据库不存在 目录已映射 也没有看到创建的数据库

Unable to deploy docker containner due to CHATGPT_BASE_URL

Successfully started Caddy (pid=17) - Caddy is running in the background
Traceback (most recent call last):
  File "/app/backend/main.py", line 16, in <module>
    environ["CHATGPT_BASE_URL"] = config.get("chatgpt_base_url", environ.get("CHATGPT_BASE_URL"))
  File "/usr/local/lib/python3.10/os.py", line 685, in __setitem__
    value = self.encodevalue(value)
  File "/usr/local/lib/python3.10/os.py", line 757, in encode
    raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not NoneType

不确定报错是不是由database_url引起的
config里面我没改任何东西,直接用的 database_url: "sqlite+aiosqlite:////data/database.db"

V2看到的,项目真棒已star

提问中反斜杠会消失不显示,但chatgpt官网中有显示

Version
v0.2.19

What's your deploying method?

  • [/ ] Docker
  • Caddy
  • Other

Describe the bug
提问中反斜杠会消失不显示,但chatgpt官网中有显示。且回答中识别到了。

To Reproduce
Steps to reproduce the behavior:

  1. 打开对话页面
  2. 发送linux命令中-exec sh -c 'cat /dev/null > "$0"' {} ;有什么用
  3. 显示的提问中最后分号前反斜杠会消失,无论在命令前后加不加双引号。

Expected behavior
A clear and concise description of what you expected to happen.

Your config.yaml or other configurations
Provide your configurations. You may hide your secrets or access tokens.

Screenshots or running logs
If applicable, add screenshots or logs to help explain your problem.

Additional context
Add any other context about the problem here.

Add support for official API?

It would be great if this could also support the official API, as it can work out to be much cheaper than the Plus subscription

How to use users this system same time

Hello,

I need to help. If one user uses chatgpt, another user can't use chatgpt. How can I implement two users and more using this system same time.

Regards,
Kadir

打开旧对话,能够自动滚动到对话底部

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Access token有效期只有两周,能考虑账号密码的方式吗

Is your feature request related to a problem? Please describe.
Access token有效期只有两周,能考虑账号密码的方式吗。

Describe the solution you'd like
Access token有效期只有两周,能考虑账号密码的方式吗。

Describe alternatives you've considered
Access token有效期只有两周,能考虑账号密码的方式吗。

Additional context
Add any other context or screenshots about the feature request here.

docker部署失败

chatgpt-web-share | {"level":"info","ts":1679063063.939427,"msg":"using provided configuration","config_file":"/app/Caddyfile","config_adapter":"caddyfile"}
chatgpt-web-share | {"level":"info","ts":1679063063.9410443,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
chatgpt-web-share | {"level":"warn","ts":1679063063.941443,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
chatgpt-web-share | {"level":"info","ts":1679063063.9425936,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
chatgpt-web-share | {"level":"info","ts":1679063063.9428377,"msg":"autosaved config (load with --resume flag)","file":"/root/.config/caddy/autosave.json"}
chatgpt-web-share | {"level":"info","ts":1679063063.9429247,"msg":"serving initial configuration"}
chatgpt-web-share | {"level":"info","ts":1679063063.9431133,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/root/.local/share/caddy"}
chatgpt-web-share | {"level":"info","ts":1679063063.943222,"logger":"tls","msg":"finished cleaning storage units"}
chatgpt-web-share | {"level":"info","ts":1679063063.943413,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000463340"}
chatgpt-web-share | Successfully started Caddy (pid=13) - Caddy is running in the background
chatgpt-web-share | INFO: Started server process [20]
chatgpt-web-share | INFO: Waiting for application startup.
chatgpt-web-share | database not exists, creating database...
chatgpt-web-share | database created
chatgpt-web-share | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
chatgpt-web-share | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
chatgpt-web-share | ERROR: Traceback (most recent call last):
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
chatgpt-web-share | async with self.lifespan_context(app) as maybe_state:
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in aenter
chatgpt-web-share | await self._router.startup()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
chatgpt-web-share | await handler()
chatgpt-web-share | File "/app/backend/main.py", line 148, in on_startup
chatgpt-web-share | raise e
chatgpt-web-share | File "/app/backend/main.py", line 104, in on_startup
chatgpt-web-share | result = await g.chatgpt_manager.get_conversations()
chatgpt-web-share | File "/app/backend/api/chatgpt.py", line 21, in get_conversations
chatgpt-web-share | conversations = await self.chatbot.get_conversations()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 869, in get_conversations
chatgpt-web-share | self.__check_response(response)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 939, in __check_response
chatgpt-web-share | response.raise_for_status()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
chatgpt-web-share | raise HTTPStatusError(message, request=request, response=self)
chatgpt-web-share | httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'https://bypass.duti.tech/api/conversations?offset=0&limit=20'
chatgpt-web-share | For more information check: https://httpstatuses.com/401
chatgpt-web-share |
chatgpt-web-share | ERROR: Application startup failed. Exiting.
chatgpt-web-share | stamped database to head
chatgpt-web-share | database initialized
chatgpt-web-share | User 1 has registered.
chatgpt-web-share | User created: <api.models.User object at 0x7f8d7327b4c0>
chatgpt-web-share | User 2 has registered.
chatgpt-web-share | User created: <api.models.User object at 0x7f8d7312d030>
chatgpt-web-share | Client error '401 Unauthorized' for url 'https://bypass.duti.tech/api/conversations?offset=0&limit=20'
chatgpt-web-share | For more information check: https://httpstatuses.com/401
chatgpt-web-share | INFO: Started server process [21]
chatgpt-web-share | INFO: Waiting for application startup.
chatgpt-web-share | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
chatgpt-web-share | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
chatgpt-web-share | ERROR: Traceback (most recent call last):
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
chatgpt-web-share | async with self.lifespan_context(app) as maybe_state:
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in aenter
chatgpt-web-share | await self._router.startup()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
chatgpt-web-share | await handler()
chatgpt-web-share | File "/app/backend/main.py", line 148, in on_startup
chatgpt-web-share | raise e
chatgpt-web-share | File "/app/backend/main.py", line 104, in on_startup
chatgpt-web-share | result = await g.chatgpt_manager.get_conversations()
chatgpt-web-share | File "/app/backend/api/chatgpt.py", line 21, in get_conversations
chatgpt-web-share | conversations = await self.chatbot.get_conversations()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 869, in get_conversations
chatgpt-web-share | self.__check_response(response)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 939, in __check_response
chatgpt-web-share | response.raise_for_status()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
chatgpt-web-share | raise HTTPStatusError(message, request=request, response=self)
chatgpt-web-share | httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'https://bypass.duti.tech/api/conversations?offset=0&limit=20'
chatgpt-web-share | For more information check: https://httpstatuses.com/401
chatgpt-web-share |
chatgpt-web-share | ERROR: Application startup failed. Exiting.
chatgpt-web-share | database initialized
chatgpt-web-share | Create User deezy0045 Error: 用户名已存在
chatgpt-web-share | Create User zhd125 Error: 用户名已存在
chatgpt-web-share | Client error '401 Unauthorized' for url 'https://bypass.duti.tech/api/conversations?offset=0&limit=20'
chatgpt-web-share | For more information check: https://httpstatuses.com/401
chatgpt-web-share exited with code 3

前端问题反馈

image
用了好几天,发现几个前端体验的问题想反馈一下,希望可以采纳。

  1. 建议用户可直接删除自己的对话,而不只是设为无效。 我发现即使用户自己删除了对话仅仅是在数据库里将对话标记为了无效,需要管理员在管理后台手动清除对话才能真正删除对话。在设定了用户对话数限制的情况下,一旦用户对话数超过限制,用户就无法再对话了,必定会弹出会话数量超出限制的提醒,即无论如何都要管理员登后台清除无效对话才行。
  2. 提问出错时,发送的文字内容返回输入框。 现在发送文字时如果出错,发出去的文字就直接消失了,如果编辑了一大段文字就直接没了,希望可以在提问出错时可以将发出去的文字返回到输入框里,避免文字丢失。

jwt_secret和user_secret到底应该填写什么?

请问下,jwt_secret和user_secret到底应该填写什么?

我通过Docker搭建起来后,发现无法正常运行,所以我认为这两个地方没填写正确。

那么请问这两个地方应该填写什么?

以后会支持对话分支吗

这个软件非常好用,感谢作者。我想知道以后会支持对话分支吗,
image
就像官网一样,在这里可以切换三个对话分支,并且可以重新提交问题。

当CHATGPT网页版提示无法获取历史记录时,DOCKER版本无法正常启动

当CHATGPT官方网页版的历史记录侧提示
History is temporarily unavailable. We're working to restore this feature as soon as possible.

使用docker-compose up无法正常启动,日志如下:
chatgpt-web-share | During handling of the above exception, another exception occurred:
chatgpt-web-share |
chatgpt-web-share | Traceback (most recent call last):
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
chatgpt-web-share | yield
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
chatgpt-web-share | resp = await self._pool.handle_async_request(req)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
chatgpt-web-share | raise exc
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
chatgpt-web-share | response = await connection.handle_async_request(request)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request
chatgpt-web-share | return await self._connection.handle_async_request(request)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 112, in handle_async_request
chatgpt-web-share | raise exc
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 91, in handle_async_request
chatgpt-web-share | ) = await self._receive_response_headers(**kwargs)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 155, in _receive_response_headers
chatgpt-web-share | event = await self._receive_event(timeout=timeout)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 191, in _receive_event
chatgpt-web-share | data = await self._network_stream.read(
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 31, in read
chatgpt-web-share | with map_exceptions(exc_map):
chatgpt-web-share | File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
chatgpt-web-share | self.gen.throw(typ, value, traceback)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
chatgpt-web-share | raise to_exc(exc)
chatgpt-web-share | httpcore.ReadTimeout
chatgpt-web-share |
chatgpt-web-share | The above exception was the direct cause of the following exception:
chatgpt-web-share |
chatgpt-web-share | Traceback (most recent call last):
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
chatgpt-web-share | async with self.lifespan_context(app) as maybe_state:
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in aenter
chatgpt-web-share | await self._router.startup()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
chatgpt-web-share | await handler()
chatgpt-web-share | File "/app/backend/main.py", line 164, in on_startup
chatgpt-web-share | raise e
chatgpt-web-share | File "/app/backend/main.py", line 119, in on_startup
chatgpt-web-share | result = await g.chatgpt_manager.get_conversations()
chatgpt-web-share | File "/app/backend/api/chatgpt.py", line 21, in get_conversations
chatgpt-web-share | conversations = await self.chatbot.get_conversations()
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 868, in get_conversations
chatgpt-web-share | response = await self.session.get(url)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1757, in get
chatgpt-web-share | return await self.request(
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1533, in request
chatgpt-web-share | return await self.send(request, auth=auth, follow_redirects=follow_redirects)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1620, in send
chatgpt-web-share | response = await self._send_handling_auth(
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1648, in _send_handling_auth
chatgpt-web-share | response = await self._send_handling_redirects(
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects
chatgpt-web-share | response = await self._send_single_request(request)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1722, in _send_single_request
chatgpt-web-share | response = await transport.handle_async_request(request)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request
chatgpt-web-share | with map_httpcore_exceptions():
chatgpt-web-share | File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
chatgpt-web-share | self.gen.throw(typ, value, traceback)
chatgpt-web-share | File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
chatgpt-web-share | raise mapped_exc(message) from exc
chatgpt-web-share | httpx.ReadTimeout
chatgpt-web-share |
chatgpt-web-share | 2023/03/22 06:16:39.046 ERROR: [uvicorn.error] Application startup failed. Exiting.

自定义proxy返回500 Internal Server Error

国内的服务器,是chatgpt plus,按文档使用的默认的自定义proxy

启动后,网页输入文字,会在等待4分钟后查看到错误日志
ERROR: [cws.api.routers.chat] Server error '500 Internal Server Error' for url 'http://127.0.0.1:6062/api/conversation'

如果通过docker-compose.yml配置网络代理,已经在宿主机验证过网络代理本身是可用的

environment:
      - HTTP_PROXY=http://127.0.0.1:7890
      - HTTPS_PROXY=http://127.0.0.1:7890

会立刻查看到错误日志
ERROR: [cws.api.routers.chat] Server error '502 Bad Gateway' for url 'http://127.0.0.1:6062/api/conversation'

这个问题该怎么解决

Does it support GPT-4?

OpenAi just published GPT-4, which is open to ChatGPT Plus users.
Indeed, I'm willing to help you develop this project. :)

分享一份nginx配置代码

感谢作者的提示,目前这份配置代码在nginx下正常可用。

    location /api/ {
        proxy_pass http://127.0.0.1:8000/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location / {
        root /home/wwwroot/chatgpt-web-share/frontend/dist;
        try_files $uri $uri/ /index.html;
    }

前端问题反馈 ios端 无法正常显示对话框

个人设备:ipad air 3
尝试浏览器:Safari/google/夸克
尝试浏览器UA:安卓/ios/pc端
存在问题:均无法显示对话框,发送内容后要点击全屏才可以显示对话内容,但无法退出和无法继续提问
截图:
1

疑似bug,GPT4长文本回复中断后无法通过打“继续”恢复中断,提示429错误

目前发下存在以下问题,疑似有BUG

1、使用GPT4的时候,如果输出长文本(大概600字以上),会有中断,此时输入继续,会提示429错误( [cws.api.routers.chat] Client error '429 Too Many Requests' for url 'http://127.0.0.1:6062/api/conversation')。
回到官方,会发现这个提问的回答不存在,仅有问题,显示There was an error generating a response。

2、在以上问题后之后,再这个对话框提出其他问题,会切换成GPT3.5。过一会时间接下去问其他问题,又变成GPT4。官网会有提示(The previous model used in this conversation is unavailable. We've switched you to the latest default model)

3、同样的长文本(大概600字以上),试过直接在官网直接提问GPT4,会在大致一样的地方中断,但是官网在输入继续后在中断处接上去继续回答完了问题。

help please

hello, I have been trying to install the script for about 5 days, but I could not install it at all. Can you give me paid support please? How can I reach you? I really need this.

后端无法访问chatgpt接口,请求帮助,配置和操作应该没有问题的

Version
v0.2.19

What's your deploying environment?

  • Docker部署
  • ChatGPT Plus已开通
    Docker的宿主机Ubuntu中开启了全局clash,美国节点。curl google.com可以正常访问。

Describe the problem
前端页面可以正常访问,一旦发生对openai的请求全部无法访问。
不过昨天有一次启动偶然获取到了的会话集合(开了四个会话窗口),之后就再也无法更新,也无法进行对话。
总体表现说明无法正常访问chatgpt。
Your config.yaml or other configurations
docker-compose.yml和您最新的Readme.md(2023.3.24晚)中配置完全一样,只修改了config.yaml中的jwt_secret、user_secret和chatgpt_access_token、reverse_proxy_puid(多次查看和修改保证最新)。

Screenshots or running logs
image

Additional context
我自己做的尝试: 进入docker容器内部,wget www.baidu.com能正常下载页面,wget www.google.com就无法连接,这是因为docker容器内部不能利用宿主机的美国代理导致无法访问chat.openai.com所致吗?如果是应该怎么做呢?如果这不是无法访问chat.openai.com的原因,那又应该怎么做呢?

安卓端管理员账号登录后点右上角切换对话无效

Version
v0.2.19

What's your deploying method?

  • [ /] Docker
  • Caddy
  • Other

Describe the bug
安卓端管理员账号登录后点右上角切换对话无效。

To Reproduce
Steps to reproduce the behavior:

  1. 安卓手机edge浏览器打开登录
  2. 点右上角切换对话
  3. 页面不会跳转

Expected behavior
页面跳转

Your config.yaml or other configurations
Provide your configurations. You may hide your secrets or access tokens.

Screenshots or running logs
If applicable, add screenshots or logs to help explain your problem.

Additional context
Add any other context about the problem here.

未知错误: Field missing. Details: {‘message’: None, ‘conversation_id’: ‘337525c0-549c-41dd-aa78-63893b0b53dc’, ‘error’: ‘Error in message stream’}}

Version
v0.2.17

What's your deploying method?
Docker +Nginx(宝塔)

Describe the bug
image

未知错误: Field missing. Details: {‘message’: None, ‘conversation_id’: ‘337525c0-549c-41dd-aa78-63893b0b53dc’, ‘error’: ‘Error in message stream’}}

To Reproduce
只要提这个问题就会出现

我要在公司内部做一次技术分享,主题是“多重身份(Multi-Identity) 和 多币种钱包(Multi-Wallet)”。
请帮我写一篇文章,题目就叫《多重身份的前身-多币种钱包》。
文章的长度暂定在 5000 字左右,语气可以轻松一些,对文章的结构没有特别的要求,但需要阐述清楚以下几个问题:

什么是 “多币种钱包”
“多币种钱包”的应用场景
市面上有哪些“多币种钱包”的产品
什么是 “多重身份”
“多重身份”的应用场景
市面上有哪些“多重身份”的产品
怎么由 “多币种钱包” 演进到 “多重身份” 的
注意:内容尽量由浅入深,应用场景部分举一些具体的例子,介绍相关产品时配一些图片。

已经出现2次.
该会话也会丢失.

Expected behavior
正常显示
Your config.yaml or other configurations

print_sql: false
host: "127.0.0.1"
port: 8000
database_url: "sqlite+aiosqlite:////data/database.db"
run_migration: false

jwt_secret: "123."    # 用于生成 jwt token,需要自行设置
jwt_lifetime_seconds: 86400
cookie_max_age: 86400           # 登录过期时间
user_secret: "123."  # 用于生成用户密码,需要自行设置

sync_conversations_on_startup: true # 是否在启动时同步同步 ChatGPT 对话,建议启用
create_initial_admin_user: false     # 是否创建初始管理员用户
create_initial_user: false          # 是否创建初始普通用户
initial_admin_username: "admin"       # 初始管理员用户名
initial_admin_password: "123"    # 初始管理员密码
# initial_user_username: user         # 初始普通用户名
# initial_user_password: Shared123.     # 初始普通密码
# https://chat.openai.com/api/auth/session  
chatgpt_access_token: "XXX"    # 需要从 ChatGPT 获取
chatgpt_paid: true  # 是否为 ChatGPT Plus 用户

Screenshots or running logs
image
2023/03/23 14:04:53.618 ERROR: [cws.api.routers.chat] Field missing. Details: {'message': None, 'conversation_id': '91766fb7-1449-4361-b373-0c66a68f3885', 'error': 'Error in message stream'}
image

Additional context

使用docker 搭建出错

{"code": 404, "message": "404 Not Found", "result": null} 访问设定的ip 和端口之后出现此错误

gpt4版本bug

image
使用gpt4模型发送第二条消息时,会切换回gpt3.5版本

没有找到镜像

没有找到镜像:Error: image moeakwak/chatgpt-web-share:latest not found

通过域名访问提问时提示1006

image
我把程序用docker部署在了服务器上,直接用ip+端口号访问可以正常提问。
但是我在宝塔将域名反代到该端口来访问之后,提问时就会提示「获取回复失败1006」,请问是什么原因呢?可以如何解决?

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.