GithubHelp home page GithubHelp logo

devillmy / sydneyqt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juzeon/sydneyqt

0.0 0.0 0.0 7.22 MB

A cross-platform desktop client for the jailbroken New Bing AI (Sydney ver.) built with Go and Wails (previously based on Python and Qt).

License: The Unlicense

JavaScript 3.23% Go 47.30% TypeScript 7.75% CSS 0.28% HTML 0.16% NSIS 5.86% Vue 35.43%

sydneyqt's Introduction

SydneyQt

SydneyQt

A cross-platform desktop client for the jailbroken New Bing AI (Sydney ver.) built with Go and Wails (previously based on Python and Qt).

简体中文

Features

  • Jailbreak New Bing with parameter tweaks and prompt injection.
  • Region restriction unlocking with proxy and Cloudflare Workers.
  • Edit the chat context freely, including the AI's previous responses.
  • Prevent Bing AI's message revoking, and automatically send custom text to continue the generation.
  • Revoke and edit your last message.
  • Craft, choose and send custom quick responses to the chat.
  • Display the rich or plain text of the chat context, supporting LaTeX formulas, tables, codes, etc.
  • Chat with webpages you browse.
  • Chat with documents you open (including pdf, docx and pptx).
  • GPT-4 with vision that supports image search.
  • Use OpenAI ChatGPT API with swichable different configurations.
  • Switch between custom prompt presets.
  • Responsible and humanized UI designs built with modern web technologies.
  • Dark mode.
  • Customize settings to your liking.

Download

You can download binaries from the release page for Windows, Linux and macOS, or build it yourself according to the Build section.

Platform information:

  • Windows: SydneyQt-windows-amd64.exe
  • Linux: SydneyQt-linux-amd64
  • macOS: SydneyQt.app.zip, SydneyQt.pkg (unsigned)

Usage

  1. Put your cookies.json in the same folder as the executable file:
    • Install the Cookie-Editor extension for Chrome or Firefox
    • Go to bing.com
    • Open the extension
    • Grant permission for All sites
    • Click Export on the bottom right, then Export as JSON (This saves your cookies to clipboard)
    • Paste your cookies into a file cookies.json, created in the same directory as the executable file.
    • Note: make sure you can use the web chat before exporting the cookie.
  2. Run the program.

Please follow the instructions in the next section to solve common issues.

Common issues

Proxy

Setting up a proxy is a must for users from mainland China.

  1. Go to settings in and try different proxy types. For example: http://127.0.0.1:7890, socks5://127.0.0.1:7890 (assuming 7890 is the port to your proxy here).
  2. If you use Clash or a similar proxy software, make sure that domains with the suffix bing.com are routed through the proxy. Some proxy providers may add bing.com to the direct rule, which means it will bypass the proxy.
  3. If this doesn't work either, leave the proxy blank, and try using Proxifier or Clash TUN mode.

Region pollution

For Chinese users only.

If the first time you open the Bing website without a proxy, it will redirect you to cn.bing.com and pollute your cookies, which means you will no longer access Bing AI with those cookies, even if you use a proxy afterwards. In case of region pollution, configure the proxy rules to make sure Bing will be accessed via proxy first and then clear all cookies from your browser or just open a privacy browsing window and log in your Microsoft account again and export the cookies finally.

Wss Reverse Proxy

Bing bans specific countries from accessing the Bing AI (to be specific, sydney.bing.com), so in that case you need to set up a wss reverse proxy with Cloudflare Workers. Here are the steps to do that:

Click me
  1. Go to this link and sign in or sign up for a Cloudflare account.
  2. In the sidebar, select Workers & Pages.
  3. On the page that opens, click Create application.
  4. Choose Create Worker.
  5. Give your worker a name and click Deploy.
  6. On the worker detail page, click Quick edit.
  7. Copy all the code from here and paste it over the existing code in worker.js. Then click Save and deploy.
  8. Copy the worker domain that looks like xxxx-xxxx-xxxx.xxxx.workers.dev (not a URL like https://xxxx-xxxx-xxxx.xxxx.workers.dev/, please remove the prefixes and suffixes) and paste it as Wss Domain in the settings page. Then click Save.

Cookie expiration

The cookies you set up before may expire from time to time. You can check the status of your cookies in the chat page of the software. In case of expiration, just redo the cookies importing steps in the Usage section.

CAPTCHA

To solve the User needs to solve CAPTCHA to continue error, please follow these steps:

  1. Check if the cookies have expired. If so, re-importing them.
  2. After making sure the cookies are valid, open Bing Web in your browser and sending a random message. You should see a CAPTCHA challenge. If not, verify that the current user matches the cookies.json file. Complete the CAPTCHA and go back to the software. It should work fine now.

If you experience infinite CAPTCHA loops, you can try the following steps:

  1. Install Bing for mobile on your phone.

  2. Log in with your Microsoft account.

  3. Send a message to New Bing.

Make sure your proxy IP does not change. If you use Clash, disable load-balancing or round-robin modes and stick to one node only. Otherwise you will need to manually solve the CAPTCHA in your browser frequently.

Build

Environment: Go 1.21+, Node.js 16+

You can follow the development guidelines from Wails.

Here's the TL;DR version:

  1. Install Go and Node.js.
  2. Install Wails: go install github.com/wailsapp/wails/v2/cmd/wails@latest.
  3. Clone the project: git clone https://github.com/juzeon/SydneyQt.
  4. Run the building command: wails build.

Web API

Thanks to @PeronGH we now have a Web API. Check out for more details.

Screenshots

Star History

Star History Chart

Acknowledgement

https://github.com/acheong08/EdgeGPT

https://github.com/InterestingDarkness/EdgeGPT/tree/sydney

https://github.com/Harry-zklcdc/go-proxy-bingai

sydneyqt's People

Contributors

juzeon avatar perongh 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.