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

Commit de26ff5

Browse files
committed
Refactor
1 parent 0f685f8 commit de26ff5

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ if __name__ == "__main__":
238238

239239
<details open>
240240

241+
> * Q: Exception: Throttled: Request is throttled.
242+
> * A: Bing's chat rate limit.
243+
> * ![rate_limit.png](images/rate_limit.png)
241244
> * Q: RuntimeError: This event loop is already running
242245
> * A: If you are using Jupyter, pls use nest_asyncio.apply()
243246
> * Like: https://github.com/Integration-Automation/ReEdgeGPT/issues/30
@@ -259,7 +262,3 @@ if __name__ == "__main__":
259262
> * A: Bing block your connect, Try to use proxy or clear cookie.
260263
261264
</details>
262-
263-
---
264-
> Origin repo (archived): https://github.com/acheong08/EdgeGPT
265-
---

images/rate_limit.png

6.48 KB
Loading

test/unit_test/manual_test/test_bot_manual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
async def test_ask() -> None:
1414
bot = None
1515
try:
16-
cookies = json.loads(open(
16+
cookies: list[dict] = json.loads(open(
1717
str(Path(str(Path.cwd()) + "/bing_cookies.json")), encoding="utf-8").read())
1818
bot = await Chatbot.create(cookies=cookies)
1919
response = await bot.ask(

0 commit comments

Comments
 (0)