-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty result #33
Comments
Oh I just realised you have similar issues too. Since 2-3 weeks I have unreadable responses when I deploy on Heroku and I raised this in issue #34 . @nathanrchn is this something you know about? |
Yes, it's pretty sad that it doesn't work. You could post this issue here too, maybe that author will be more approachable. |
any ideas on how to fix? I have exactly this error with Vercel/Render |
You don't need to use this library any more - perplexity officially released their API with mistral and llama endpoint, so you can use it instead. They are much more stable than this library. |
But their models don't search in web |
You can see here https://docs.perplexity.ai/docs/model-cards they have pplx-7b-online and pplx-70b-online, they are online meaning they do search in web. |
They don't work in web, there are even reddit threads about it. |
I am sorry then, I didn't know about it. So far I've been using it and it always gave up-to-date information. I just ran a query with its API and asked about Mixtral (was released a few days ago), it gave fully correct answer. Could you please share the threads where this topic is discussed? |
Oh, really? I didn't know that, I only read threads, sorry. Can you please share a python code for API calling? |
Sure, here you go:
You also have to follow their guide to get your API key if you didn't already: https://docs.perplexity.ai/docs |
@ArtDoctor thanks! paid one works just fine. But I still don't understand why the one from here doesn't work only when its deployed and works perfectly when I run it from my macbook. |
Glad to help! I'm wondering about that as well. It looks like the owner of this library isn't working on it anymore, because there are lots of open problems and no recent updates. That's sad. Maybe perplexity made some changes that broke the library, which is causing all these problems. |
I think it's because when you test it on your mac locally, cloudfare doesn't block the request, but on a server, they block it. |
But I use ngrok and it works, shouldn't cloudfare block it in that case? |
Recently perplexity API started returning empty results. The strangest part is that it doesn't always do it, but it just randomly sometimes returns nothing. Here is my code:
Result (sometimes):
exc: list index out of range
web results: []
Could anyone please point out if I did something wrong, or it's an actual issue?
The text was updated successfully, but these errors were encountered: