Skip to content

Not at all working #32

@Saharsh1223

Description

@Saharsh1223

Code:

from prsaw import RandomStuffV2

rs = RandomStuffV2() 

response = rs.get_ai_response("How are you?")
print(response)

rs.close()

Error:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    response = rs.get_ai_response("How are you?")
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/apiclient/core.py", line 95, in __call__
    return self.sync_call(httpx_request)
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/apiclient/core.py", line 100, in sync_call
    response = post_processor(response)
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/prsaw/PRSAW.py", line 115, in _post_get_image
    return res[0]
KeyError: 0

And yes i am using replit.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions