acheong08 / EdgeGPT

Reverse engineered API of Microsoft's Bing Chat AI
The Unlicense
8.07k stars 909 forks source link

[Bug]: Have a problem from example in README.md #612

Closed Bingchatbot closed 1 year ago

Bingchatbot commented 1 year ago

Is there an existing issue for this?

What happened?

If code from: "1. The Chatbot class and asyncio for more granular control Use Async for the best experience, for example: ..." run in replit.com I have a error. Why?

230714

Steps to reproduce the problem

  1. Copy code from example
  2. Add cookies.json
  3. Add "try: ... except ..." in code

What should have happened?

  1. Run code and get an error

Version where the problem happens

EdgeGPT-0.12.1

What Python version are you running this with?

Python 3.10.8

What is your operating system ?

Other/Cloud

Command Line Arguments

No

Console logs

Exception : 
S T O P ! ! !

Additional information

A few days ago everything was working without problems.

Link to replit.com with code: https://replit.com/@dz2023/Bing-Chat-v230714?v=1

xiaolvtongxue-zt commented 1 year ago

是的,我也出现了这个问题,运行报错后,错误信息是空的。

**`try: print(f"使用模式:{style}") bot = Chatbot(cookies=cookies) print("1") raw_data = await bot.ask(prompt, conversation_style=style) await bot.close()

print(raw_data)

except Exception as e: print(f">>>>>> 报错信息:\t -----> 【{e}】")`**

最后返回: **`使用模式:precise 1

报错信息: -----> 【】`**

The---onE commented 1 year ago

我这两天也一直报错,用traceback.print_exc(),是出现了asyncio.exceptions.TimeoutError,和 https://github.com/acheong08/EdgeGPT/issues/606 情况一样

The---onE commented 1 year ago

试了一下 https://github.com/acheong08/EdgeGPT/pull/610 这个PR可以修复

Bingchatbot commented 1 year ago

试了一下 #610 这个PR可以修复

Thank you! This code fix works great!

Bingchatbot commented 1 year ago

This code fix problem : https://github.com/acheong08/EdgeGPT/pull/610