Skip to content

fix(models): correct sonar-deep-research model name in Perplexity config#6069

Merged
HenryHengZJ merged 1 commit into
FlowiseAI:mainfrom
AbdulSamad94:bugfix/fix-sonar-deep-research-model-name
Mar 31, 2026
Merged

fix(models): correct sonar-deep-research model name in Perplexity config#6069
HenryHengZJ merged 1 commit into
FlowiseAI:mainfrom
AbdulSamad94:bugfix/fix-sonar-deep-research-model-name

Conversation

@AbdulSamad94

@AbdulSamad94 AbdulSamad94 commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

The sonar-deep-research entry under chatPerplexity in models.json had its name field incorrectly set to "sonar" instead of "sonar-deep-research".

Impact

This fix addresses two significant issues:

  1. Functional Bug: Users selecting "Sonar Deep Research" in the UI were actually hitting the regular sonar API endpoint, resulting in lower-quality search results than expected.
  2. Data Collision: It caused a duplicate name collision with the existing sonar entry at line 1608, which led to incorrect cost calculations and model lookups within the modelLoader.

Changes

  • Updated packages/components/models.json to change the name field for the sonar-deep-research label from "sonar" to "sonar-deep-research".

Bug Reproduction

The video below demonstrates the issue, when selecting sonar-deep-research from the model dropdown, the API request is sent with "sonar" as the model identifier instead of "sonar-deep-research":

Screen.Recording.2026-03-28.013644.mp4

The sonar-deep-research entry under chatPerplexity had its name field incorrectly set to 'sonar' instead of 'sonar-deep-research'. This caused two issues:

1. Users selecting sonar-deep-research in the UI would hit the regular sonar API endpoint instead of the deep research endpoint

2. A duplicate name collision with the existing sonar entry, causing incorrect cost lookups

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the models.json configuration file to align the name of the sonar-deep-research model with its label. I have no feedback to provide.

@HenryHengZJ HenryHengZJ merged commit 4751166 into FlowiseAI:main Mar 31, 2026
3 checks passed
@AbdulSamad94 AbdulSamad94 deleted the bugfix/fix-sonar-deep-research-model-name branch April 1, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants