acheong08 / Bard

Python SDK/API for reverse engineered Google Bard
MIT License
1.42k stars 177 forks source link

KeyError: 'images' #78

Open BongeZagh opened 1 year ago

BongeZagh commented 1 year ago

Hi, when I run Bard, I encountered an error. I have made sure that the PSIDTS and PSID are correct.

% python -m  Bard

        Bard - A command-line interface to Google's Bard (https://bard.google.com/)
        Repo: github.com/acheong08/Bard

        Enter `alt+enter` or `esc+enter` to send a message.

Google Bard encountered an error:                                               
b')]}'\n\n39\n[["wrb.fr",null,null,null,null,[13]]]\n58\n[["di",649],["af.httprm
",648,"1266912438115077571",154]]\n25\n[["e",4,null,null,134]]\n'.              
Traceback (most recent call last):
  File "/Users/zaghyang/anaconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/zaghyang/anaconda3/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/zaghyang/anaconda3/lib/python3.10/site-packages/Bard.py", line 324, in <module>
    console.print(response["images"] if response["images"] else "")
KeyError: 'images'