Ruu3f / perplexityai

A simple module to use Perplexity AI in Python.
https://pypi.org/project/perplexityai
GNU General Public License v3.0
47 stars 6 forks source link

json.decoder.JSONDecodeError: #9

Open AtulRajVAASITS opened 5 months ago

AtulRajVAASITS commented 5 months ago

Traceback (most recent call last): File "d:\Working on\ml\research\test.py", line 956, in for a in Perplexity().generate_answer(prompt): ^^^^^^^^^^^^ File "d:\Working on\ml\research\research\Lib\site-packages\perplexityai__init.py", line 22, in init self.sid = loads( ^^^^^^ File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

andrewcampi commented 5 months ago

+1

quantumalchemy commented 3 months ago

anyone find the fix ?