nathanrchn / perplexityai

A python api to use perplexity.ai
233 stars 60 forks source link

API doesn't work #30

Open AI-Armless opened 1 year ago

AI-Armless commented 1 year ago

Hi, I encountered an error again after your update. Could you please fix it?

raise TypeError(f'the JSON object must be str, bytes or bytearray, '

TypeError: the JSON object must be str, bytes or bytearray, not Response

nathanrchn commented 1 year ago

Are you using a proxy or running your script on google colab or something in the cloud?

AI-Armless commented 1 year ago

I run it from home without a proxy, the same thing happens on my server.

nathanrchn commented 1 year ago

Ok but are you using the Labs or the Perplexity search API ?

AI-Armless commented 1 year ago

Perplexity search API

SilviaBerardelli commented 1 year ago

Still not working for me, neither on Colab or on PyCharm. Any idea on how to solve it?