Agora-Lab-AI/Bing-Chat-API

[Bug]: the example file doesn't work at all, always shows an "invalid syntax" at "from bing-chat import BingChat".

Closed this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

This code does not work, always shows an "invalid syntax" at "from bing-chat import BingChat"

import logging
from bing-chat import BingChat #syntax error message

if name == "main":
logging.basicConfig(level=logging.INFO)
chat = BingChat("")
initial_message = "Hello, Bing!"
messages = chat.run(initial_message)
print("Chat history:", messages)

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

Should works, ok?

Version where the problem happens

Python 3

What Python version are you running this with?

Python 3.11.3

What is your operating system ?

Windows

Command Line Arguments

No

Console logs

No logs, it does not even start to run

Additional information

No response

it´s a fecalware, don't loose time whit this crap.