[PR #734] [MERGED] Feat/update perplexity parameters #1520

Closed
opened 2026-02-16 10:23:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/734
Author: @TakumaKira
Created: 4/16/2025
Status: Merged
Merged: 4/16/2025
Merged by: @crazywoola

Base: mainHead: feat/update-perplexity


📝 Commits (3)

  • bba6531 feat: update perplexity search parameters
  • 4f8f0b4 chore: bump perplexity search version
  • 159a06f chore: update dependency requirements

📊 Changes

4 files changed (+57 additions, -30 deletions)

View changed files

📝 tools/perplexity/manifest.yaml (+1 -1)
📝 tools/perplexity/requirements.txt (+1 -1)
📝 tools/perplexity/tools/perplexity_search.py (+10 -9)
📝 tools/perplexity/tools/perplexity_search.yaml (+45 -19)

📄 Description

Related Issues or Context

fixes langgenius/dify/#17806

  • Referenced to: https://docs.perplexity.ai/api-reference/chat-completions
  • Matched model list to the latest document
  • Added return_images / return_related_questions / search_context_size parameters
  • Removed return_citations parameter
  • Updated search_domain_filter parameter to explicitly match the latest api (string array up to 3 items)
    • Also made sure to trim leading and trailing spaces after separated by comma
  • All Chinese descriptions are AI generated and please fix them later if something went wrong as I don't understand Chinese 🙏
Before After
panel_top_before panel_top_after
model_dropdown_before model_dropdown_after
panel_bottom_before panel_bottom_after
panel_result_before panel_result_after
Request and Response Body (Before) Request and Response Body (After)
request_response_body_before request_response_body_after

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run All Tests Relevant to My Changes

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. Dify Version is: 1.2.0

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/734 **Author:** [@TakumaKira](https://github.com/TakumaKira) **Created:** 4/16/2025 **Status:** ✅ Merged **Merged:** 4/16/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `feat/update-perplexity` --- ### 📝 Commits (3) - [`bba6531`](https://github.com/langgenius/dify-official-plugins/commit/bba6531e4c10a7f2b536cc3256bd1edac007f1da) feat: update perplexity search parameters - [`4f8f0b4`](https://github.com/langgenius/dify-official-plugins/commit/4f8f0b4bcf71097336164ab0781a686791ce959b) chore: bump perplexity search version - [`159a06f`](https://github.com/langgenius/dify-official-plugins/commit/159a06f41443ddf863e48b9b648738f0d337b99d) chore: update dependency requirements ### 📊 Changes **4 files changed** (+57 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `tools/perplexity/manifest.yaml` (+1 -1) 📝 `tools/perplexity/requirements.txt` (+1 -1) 📝 `tools/perplexity/tools/perplexity_search.py` (+10 -9) 📝 `tools/perplexity/tools/perplexity_search.yaml` (+45 -19) </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> fixes [langgenius/dify/#17806](https://github.com/langgenius/dify/issues/17806) - Referenced to: https://docs.perplexity.ai/api-reference/chat-completions - Matched model list to the latest document - Added `return_images` / `return_related_questions` / `search_context_size` parameters - Removed `return_citations` parameter - Updated `search_domain_filter` parameter to explicitly match the latest api (string array up to 3 items) - Also made sure to trim leading and trailing spaces after separated by comma - All Chinese descriptions are AI generated and please fix them later if something went wrong as I don't understand Chinese 🙏 | Before | After | | --- | --- | | <img width="432" alt="panel_top_before" src="https://github.com/user-attachments/assets/d390ac09-6784-429d-bf71-c56ccfacba1b" /> | <img width="434" alt="panel_top_after" src="https://github.com/user-attachments/assets/71a03681-9b4b-4b1f-b02a-e09aa9656a99" /> | | <img width="432" alt="model_dropdown_before" src="https://github.com/user-attachments/assets/fc8e9395-b59b-476d-91ff-e804fdf2cc57" /> | <img width="434" alt="model_dropdown_after" src="https://github.com/user-attachments/assets/5844342b-c3c2-4368-ad18-849958a3a13e" /> | | <img width="432" alt="panel_bottom_before" src="https://github.com/user-attachments/assets/87737331-c5bc-4449-9654-af3e2455c2ee" /> | <img width="434" alt="panel_bottom_after" src="https://github.com/user-attachments/assets/3945ce59-0a35-4bfa-bbc6-24b035fcd00e" /> | | <img width="433" alt="panel_result_before" src="https://github.com/user-attachments/assets/9c66271e-864b-4d3c-8bd4-61b68195626b" /> | <img width="434" alt="panel_result_after" src="https://github.com/user-attachments/assets/4b9e75cc-fa39-48ea-ad3f-bf8fa59306ae" /> | | Request and Response Body (Before) | Request and Response Body (After) | | <img width="1437" alt="request_response_body_before" src="https://github.com/user-attachments/assets/b88f2122-137d-4f03-8b45-a6b1906d8eff" /> | <img width="1440" alt="request_response_body_after" src="https://github.com/user-attachments/assets/c5cc3875-918f-4dea-b22e-b79cc5f571df" /> | ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [ ] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [ ] I have Run All Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## This PR contains Changes to *LLM Models Plugin* <!-- LLM Models Test Example: --> <!-- https://github.com/langgenius/dify-official-plugins/blob/main/.assets/test-examples/llm-plugin-tests/llm_test_example.md --> - [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Structured Output Format (JSON, XML, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Token Consumption Metrics <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] Other Changes (Add New Models, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. Dify Version is: <!-- Specify Your Version (e.g., 1.2.0) --> 1.2.0 <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:23:11 -05:00
yindo closed this issue 2026-02-16 10:23:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1520