Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit b79b9cd

Browse files
authored
Merge pull request #2 from Integration-Automation/dev
Update README.md
2 parents d776b53 + c62b1a5 commit b79b9cd

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ If you receive the following error, you can try **providing a cookie** and see i
4646
5. Go to [bing.com](https://bing.com)
4747
6. Open the extension
4848
7. Click "Export" on the bottom right, then "Export as JSON" (This saves your cookies to clipboard)
49-
8. Paste your cookies into a file `bing_cookies_*.json`.
50-
- NOTE: The **cookies file name MUST follow the regex pattern `bing_cookies_*.json`**, so that they could be recognized by internal cookie processing mechanisms
49+
8. Paste your cookies into a file `bing_cookies.json`.
50+
- NOTE: The **cookies file name MUST follow the regex pattern `bing_cookies.json`**, so that they could be recognized by internal cookie processing mechanisms
5151

5252
### Use cookies in code:
5353

5454
```python
5555
import json
5656
from re_edge_gpt import Chatbot
5757

58-
cookies = json.loads(open("./path/to/bing_cookies.json", encoding="utf-8").read()) # might omit cookies option
58+
cookies = json.loads(open("./path/to/bing_cookies.json", encoding="utf-8").read())
5959
bot = await Chatbot.create(cookies=cookies)
6060
```
6161

@@ -74,15 +74,13 @@ bot = await Chatbot.create(cookies=cookies)
7474
```
7575
$ python3 -m EdgeGPT.EdgeGPT -h
7676
77-
EdgeGPT - A demo of reverse engineering the Bing GPT chatbot
78-
Repo: github.com/acheong08/EdgeGPT
79-
By: Antonio Cheong
77+
re_edge_gpt - A demo of reverse engineering the Bing GPT chatbot
8078
8179
!help for help
8280
8381
Type !exit to exit
8482
85-
usage: EdgeGPT.py [-h] [--enter-once] [--search-result] [--no-stream] [--rich] [--proxy PROXY] [--wss-link WSS_LINK]
83+
usage: re_edge_gpt.py [-h] [--enter-once] [--search-result] [--no-stream] [--rich] [--proxy PROXY] [--wss-link WSS_LINK]
8684
[--style {creative,balanced,precise}] [--prompt PROMPT] [--cookie-file COOKIE_FILE]
8785
[--history-file HISTORY_FILE] [--locale LOCALE]
8886
@@ -120,7 +118,7 @@ from re_edge_gpt import Chatbot, ConversationStyle
120118
cookies = json.loads(open(str(Path(str(Path.cwd()) + "/bing_cookies.json")), encoding="utf-8").read())
121119

122120
async def main():
123-
bot = await Chatbot.create(cookies=cookies) # Passing cookies is "optional", as explained above
121+
bot = await Chatbot.create(cookies=cookies)
124122
response = await bot.ask(prompt="Hello world", conversation_style=ConversationStyle.creative, simplify_response=True)
125123
print(json.dumps(response, indent=2)) # Returns
126124
"""
@@ -142,6 +140,5 @@ if __name__ == "__main__":
142140
</details>
143141

144142
---
145-
Origin repo (archived):
146-
https://github.com/acheong08/EdgeGPT
143+
> Origin repo (archived): https://github.com/acheong08/EdgeGPT
147144
---

0 commit comments

Comments
 (0)