Agora-Lab-AI / Bing-Chat-API

An unofficial API for Bing Chat (GPT4)
The Unlicense
93 stars 18 forks source link

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

Closed antonionewlands2023 closed 9 months ago

antonionewlands2023 commented 9 months ago

Is there an existing issue for this?

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

antonionewlands2023 commented 9 months ago

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