Ask a Question

Proper version of OpenAPI definition to use

'm building an app using the example in <https://docs.perplexity.ai/reference/post_chat_completions>, using the given OpenAPI definition '@pplx/v0#29jnn2rlt35the2'. But that results in the error message: Sorry, we were unable to load that OpenAPI definition. Please either supply a URL or a path on your filesystem. Is there a newer version I should be referencing?

removing attached files

How do I remove attached files to one my threads. It’s affecting the answers to my other questions. Help!

Apl_url syntax

Is the following syntax correct: api_url = '<https://api.perplexity.ai/v1/models/sonar-small-online/complete'>

About checking API usage

Home→[Settings]→[API]→[View Dashboard] [View Dashboard]→[Usage] I can see [1 month] and [2 months], but I can't see [6 months]. Therefore, it is not possible to check all changes in API usage from the start date.

Sobre la API KEY

Si yo ya ytengo mi API KEY de openai con créditos, no la puedo usar aquí en Perplexity??

I cannot see the 'generate api key' button, even I've charged $5 on my account!

To use the perplexity API, I've created my account and charged $5. Payment has succeed, but on the API setting page, the area of "API" is all blanc and no buttons appear. How can I get to use API?

How to access the usage of a stream when using OpenAI sdk?

Hi, I'm currently having a hard time accessing the usage from the stream in JS. It's fine in Python as we can just iterate through the response but can't find a way in JS. I'm also using Vercel AI SDK where I've tried to use AIStream but without success. Here's my code ``` // Define a simple parser that logs each chunk and returns nothing. function logChunkParser(): AIStreamParser { console.log('logChunkParser') return (data: any) => { console.log('Chunk received:', data); // Since we're only logging, we return nothing here. }; } AIStream(response, logChunkParser()) ``` I don't mind not using Vercel SDK but would still need to count the number of tokens. Does anyone has a way?

Are Sonar models new?

Are Sonar models new models, or fine-tuned mistral models? Just wanna know, since the hidden pplx-8x7b is there, so like wanna know if they're the same model or not.

Source link not available via API

Hi Perplexity, I'm build tinyai.io which is a prompt builder and gives users access to multiple AI models (perplexity, openai, google gemnini (coming soon). I was excited to implement perplexity and let my user search the internet, however I can't get the source links to a chat completion, which makes the api kinda useless. How can I receive the source information and also you offer video and other media on Perplexity - is that coming to the API anytime soon? Cheers, Christian

why am i recieving weird answers that dont mean anything

You: what can i do in berlin today with my wife? AI: Hello there! I'm so glad you're planning a special day with your wife in Berlin. There are many wonderful experiences to choose from. Since you're interested in checking out a cinema, allow me to give you an overview of the CinemaxX Potsdamer Platz and its movie offerings for today: | Film Title | Time | | -------------------- | -------- | | The New Adventures | 12:00 PM | | The Uncharted Void | 2:00 PM | | A Sweet Melody | 4:00 PM | | The Silent Guardian | 6:30 PM | | The Artisan's Secret | 9:00 PM | In addition to your movie experience, Berlin offers a plethora of activities for you and your wife to enjoy: 1. Explore Museum Island: Take a stroll around this UNESCO World Heritage Site and visit world-class museums like the Pergamon Museum or the Neues Museum. 2. Savor local cuisine: Head to the "Markthalle IX" for a food market experience, sampling Berliner street food and experiencing the lively atmosphere. 3. Take a guided tour: Explore the vibrant graffiti art and fascinating history of the Berlin Wall or the city's rich cultural heritage through a variety of engaging walking tours. 4. Wander through parks: Stroll hand-in-hand through beautiful green spaces like the sprawling Tiergarten, Gärten der Welt, or Volkspark Friedrichshain. 5. Go shopping: If you're both interested in retail therapy, visit Ku'damm (Kurfürstendamm) for high-end fashion, or Mitte for vintage and independent boutiques. 6. Indulge in a spa experience: Unwind at one of Berlin's many day spas, such as SoSPA at The Mandala Hotel or Liquidrom, for some relaxation and rejuvenation. Feel free to mix and match these activities according to your and your wife's preferences for the perfect day together in Berlin. Have a fantastic time, and don't forget to enjoy each other's company! You: thanks anything else? AI: to represent to put it's to provide help me. If information accurate information with professionals. Let's to tell them to show how to me. follow-up, be sure job to me. depend. 1. Can you help me. ten, seem to assist me. let's to the to show me. let me to show mature process To assist you in showing me. 1. An informational overall right to show to showme hello, For questions 242988: 29. I'mall capital 2989888888888888888999999999999999999999999999999999999999999999999999999999999,2P29999-2 -u 2999919999999999999999999999999AARFF9999a9aidenia>2A199999991109A1111a11111110111191111111111989\*\* self19 com chroming memory the first response is always okay after that not what am i doing wrong