Git Product home page Git Product logo

Comments (4)

acheong08 avatar acheong08 commented on May 27, 2024 1

https://github.com/acheong08/EdgeGPT/releases/tag/0.0.52

from edgegpt.

acheong08 avatar acheong08 commented on May 27, 2024

It doesn't seem safe

What doesn't seem safe?

Can i store cookie with environment variable instead of cookie.json

Make a pull request if you wish as an option

from edgegpt.

Manamama avatar Manamama commented on May 27, 2024

IMHO, placing these in that separate JSON file is exactly as safe as placing them in the env variable. They both get referenced by the code. If "the enemy" has access to your JSON then they have equal access to your .bashrc or wherever you may keep that variable.

Interestingly enough the stored cookie works even some days afterwards. See also my today's end-user "naive" comments about Edge Chat session impermanence and how they wipe it with chocolate, mediation, and Japanese cultural joyful customs against human toxic answers, to avoid Taybot chat session cache problems.

from edgegpt.

rabilrbl avatar rabilrbl commented on May 27, 2024

@acheong08 We can already store cookies from environment variables with cookies argument in ChatBot class

cookies = json.loads(os.environ.get("BING_COOKIES"))

The issue I found is that version of EdgeGPT in PyPI and in GitHub are out of sync
The latest version in PyPi had no support for cookies argument in ChatBot class
I had to install from GitHub to solve the issue

You can close this issue

from edgegpt.

Related Issues (20)

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.