Discussions

Ask a Question

Custom stop words are not supported?

When I try with below configuration: completion = client.chat.completions.create( model=model, messages=messages, temperature=0, stop=["Observation:"] ) I got this error openai.BadRequestError: Error code: 400 - {'error': {'message': 'custom stop words are not implemented for completions.', 'type': 'unsupported_parameter', 'code': 400}} Without this It is not possible to use React prompts :(

Resolving Perplexity AI API Issue with Accessing some Links

When attempting to access and analyze the article '<https://news.google.com/rss/articles/CBMiZ2h0dHBzOi8vd3d3LmJmbXR2LmNvbS9lY29ub21pZS9sLWVyZS1nZW5lcmF0aXZlLW91LWxhLXZlcml0YWJsZS1yZXZvbHV0aW9uLWRlLWwtaWFfVk4tMjAyNDA0MTYwMTc3Lmh0bWzSAWtodHRwczovL3d3dy5iZm10di5jb20vYW1wL2Vjb25vbWllL2wtZXJlLWdlbmVyYXRpdmUtb3UtbGEtdmVyaXRhYmxlLXJldm9sdXRpb24tZGUtbC1pYV9WTi0yMDI0MDQxNjAxNzcuaHRtbA?oc=5'> using Perplexity AI in my browser, the analysis works flawlessly. However, when attempting the same analysis using the Perplexity AI API, it fails. I suspect the issue may be related to navigation headers. Are there any known solutions or workarounds to resolve or bypass this issue? Thank you for your assistance :)
ANSWERED

API usage issues

I created an AI chat service via API and tested it to request today's date. However, the date it responds with is different when I use the API and when I use it directly on my Claude site. Why is this happening? Is there any way to resolve this issue?

About citation numbers

This text is a translation, so please excuse my poor English. We are a Japanese company and use [sonar-small-online] in Japanese. I set the parameter "return_citations: True" and use it for business purposes. Until April 12, 2024, the answers were displayed normally as shown below. "......[1]" However, from 2024/04/15, the citation numbers are missing as shown below. Today too. "......\[" I also feel that the quality of the answers has decreased. I would like to know the cause and countermeasures. <br>
ANSWERED

Sonar-medium-online unable to produce reponse in another language. Sonar-small-online responds with hallucinations

Hi, I tried querying Sonar-medium-online api with a question and asked it to provide the response in Arabic language and it responded in English. however, if I provide the same query to Sonar-small-online it will provide the response in Arabic. <br> However the response of Sonar-small-online when provided in Arabic contains a lot of hallucinations. anything I can do from my side or is this a known issue?
ANSWERED

Signing into Perplexity

I’m experiencing a problem signing into Perplexity , when l sign in using my email, the sit just keeps loading.,
ANSWERED

How make the site information queryable on Perplexity?

I tried to query data from the website [rumah123.com](https://www.rumah123.com/) on perplexity, however, the results are too generic. Is there a way to submit the URLs or site to make perplexitybot crawl the same? <br>
ANSWERED

Citations in API Responses

Any way to have citations included in the online models' API responses?
ANSWERED

Regarding Subsciption to Perplexity Pro

<br> Last month, in March 2024, I subscribed to Perplexity Pro and have thoroughly enjoyed the premium features and benefits it offers. However, as my subscription is due for renewal, I have encountered difficulties in completing the process. Whenever I attempt to renew my subscription, I receive an error message stating, "We are unable to authenticate your Payment mode. Please choose a different payment method and try again." I have attempted to rectify this issue by ensuring that my payment information is accurate and up to date. Despite this, I am still unable to proceed with the renewal process. As a loyal customer, I am eager to continue my subscription to Perplexity Pro and would appreciate any assistance you can provide in resolving this matter promptly. Could you please advise me on the steps I should take to successfully renew my subscription?
ANSWERED

API Followup question

i made a API call to perplexity api and i had to ask a followup question for which i passed the messages like the one below but I'm receiving a 400 error code messages=[ {"role": "system", "content": "Be precise and concise."}, {"role": "user", "content": "Who won the world series in 2020?"}, {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}, {"role": "user", "content": "Where was it played?"} ]