File "C:\Users\ms\ppenv\Lib\site-packages\perplexity\client.py", line 206, in search #61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
got below error just for today ? anyone met the same?
Traceback (most recent call last):
File "C:\Users\ms\ppapi.py", line 30, in
resp = perplexity_cli.search('tsla news today', mode='reasoning', model='o3-mini', sources=['web'], stream=False, language='en-US', follow_up=None, incognito=False)
File "C:\Users\ms\ppenv\Lib\site-packages\perplexity\client.py", line 206, in search
content_json['text'] = json.loads(content_json['text'])
Looks like Perplexity just updated the response format
@geohk can you try to add a print statement before this line on client.py ?
change function stream_response in client.py to
example of usage:
i have fixed this issue + added new model support
go to pull request i added my contribution there
I am also facing the same issue. Any fix yet ?
File "C:\Users\Documents\projects\perplexity.venv\Lib\site-packages\perplexity_async\client.py", line 231, in search
content_json['text'] = json.loads(content_json['text'])
~~~~~~~~~~~~^^^^^^^^
KeyError: 'text'