OpenAI-API-compatible model can't support Perplexity api #2705

Closed
opened 2026-02-21 17:49:00 -05:00 by yindo · 0 comments
Owner

Originally created by @Arbow on GitHub (Apr 27, 2024).

Originally assigned to: @Yeuoly on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.5

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Add Perplexity api model into OpenAI-API-compatible and save
    image

  2. Use Perplexity model in workspace app, ASSISTANT's output always empty
    image

  3. The browser API call received a response, but the answer field was empty
    image

  4. I tried using this Perplexity api key in python client, it's ok

image image

✔️ Expected Behavior

Perplexity model works

Actual Behavior

Perplexity model return empty response

Originally created by @Arbow on GitHub (Apr 27, 2024). Originally assigned to: @Yeuoly on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.5 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Add Perplexity api model into OpenAI-API-compatible and save <img width="647" alt="image" src="https://github.com/langgenius/dify/assets/14039/c5b9e8f6-b708-439e-9b39-2beaf47d7af5"> 2. Use Perplexity model in workspace app, ASSISTANT's output always empty <img width="342" alt="image" src="https://github.com/langgenius/dify/assets/14039/ee9107aa-6940-4a7f-afa6-5f9c06dbac69"> 3. The browser API call received a response, but the answer field was empty <img width="1090" alt="image" src="https://github.com/langgenius/dify/assets/14039/a877a08c-acb6-40e4-82bc-6150d7985cc1"> 4. I tried using this Perplexity api key in python client, it's ok 5. <img width="543" alt="image" src="https://github.com/langgenius/dify/assets/14039/720ceb7b-e23e-419e-9851-ae3b68fa3629"> <img width="994" alt="image" src="https://github.com/langgenius/dify/assets/14039/fbb9c06c-fb1c-4662-93b0-d37eb2e3d1f8"> ### ✔️ Expected Behavior Perplexity model works ### ❌ Actual Behavior Perplexity model return empty response
yindo closed this issue 2026-02-21 17:49:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2705