Git Product home page Git Product logo

chatsydney-react's Introduction

ChatSydney

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

  • --host or -H: The hostname and port for the server, default is localhost:65432.
  • --proxy or -p: Proxy address, like http://localhost:7890, default is empty.

WebSocket API

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

  • message: The user's message.
  • context: The context of the conversation, can be any string.

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

  • type: The type of the message, can be the type from Bing response or error.
  • message: The response from EdgeGPT.
  • error: If an error occurs, this field will contain the error message.

chatsydney-react's People

Contributors

renqabs avatar

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.