SoraRoseous / ChatSydney-react

帮黑暗大佬暂时维护下,已支持图像生成(需cookie)和图像识别,不过图像识别结果仅在当次对话有效。可以进下面的链接体验一下(建议使用自己的cookie,不填默认是用我的,容易上限),这个地址可能会变动。
https://80c9-38-207-143-112.ngrok-free.app
The Unlicense
83 stars 34 forks source link

欢迎到slack来tree new bing。https://join.slack.com/t/chatsydneycomminicate/shared_invite/zt-1x7tjzgdz-v71xazsoE206kJwFuyf1rA

ChatSydney

中国用户请设置能翻墙的系统代理 Chinese users, please set up a system proxy that can bypass the GFW.
使用的时候最好添加cookies.json文件。

Installation

First, you need to have Python 3.11 or higher installed. Then, you can install the required dependencies using pip:

pip install -r requirements.txt --upgrade

How to get cookies.json

same as EdgeGPT https://github.com/acheong08/EdgeGPT#getting-authentication-required

Usage

After saving cookies.json in current directory, you can run this project using the Python command line:

python main.py

Then, you can open http://localhost:65432 in your browser to start chatting.

Command Line Arguments

WebSocket API

The WebSocket API accepts a JSON object containing the following fields:

The WebSocket API returns a JSON object containing the following fields:

Server

If you want to deploy to the server, and use https protocol to access, then you need to change websocket = new WebSocket(ws://${window.location.host}/ws/) to websocket = new WebSocket(wss://${window.location.host}/ws/) in public/index.html