Skip to content

Commit

Permalink
chore: openAI token removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 committed Apr 24, 2024
1 parent 27a9115 commit 08a8e53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ REPLYING_ALL=False
DISCORD_CHANNEL_ID=
REPLYING_ALL_DISCORD_CHANNEL_ID=

# Generating images cookies (Neccessary for bing & openai)
# cookeis for generating images
BING_COOKIE= # https://www.bing.com/chat -> _U
OPENAI_TOKEN= # https://chat.openai.com/api/auth/session -> access_token
GOOGLE_PSID= # https://gemini.google.com/app -> __Secure-1PSID

# OpenAI API-key -> https://platform.openai.com/api-keys
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ If you possess an OpenAI Plus account, utilizing the OpenAI provider is recommen

<img src="https://i.imgur.com/Eo1ZzKk.png" width="300" alt="image">

### OpenAI DALLE3 Image Generation (Requires a GPT Plus account)
1. Log into your openai account

2. Go to https://chat.openai.com/api/auth/session

3. Copy the value for `access_token` and paste it into `.env` under `OPENAI_TOKEN`

### Microsoft Bing Image Generation
1. Go to https://www.bing.com/chat and log in

Expand Down
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
set_cookies(".bing.com", {
"_U": str(os.getenv("BING_COOKIE"))
})
set_cookies("chat.openai.com", {
"access_token": str(os.getenv("OPENAI_TOKEN"))
})
set_cookies(".google.com", {
"__Secure-1PSID": str(os.getenv("GOOGLE_PSID"))
})
Expand Down

0 comments on commit 08a8e53

Please sign in to comment.