Skip to content

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • remove deprecated perplexity sonar reasoning model

https://docs.perplexity.ai/getting-started/models

Type of Change

  • Bug fix

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
docs Skipped Skipped Dec 23, 2025 9:24pm

@waleedlatif1 waleedlatif1 merged commit 2c36926 into staging Dec 23, 2025
7 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/tools branch December 23, 2025 21:24
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 23, 2025

Greptile Summary

This PR removes the deprecated sonar-reasoning model from the Perplexity block configuration. According to the Perplexity documentation, this model is no longer available.

Changes:

  • Removed sonar-reasoning model option from the model dropdown in apps/sim/blocks/blocks/perplexity.ts:53
  • The remaining models (sonar, sonar-pro, sonar-deep-research, sonar-reasoning-pro) are all valid and currently supported

Impact:

  • Users will no longer be able to select the deprecated model from the UI
  • Existing workflows using this model may fail when executed (but this would happen anyway since the model is deprecated by Perplexity)
  • No other files or references to sonar-reasoning were found in the codebase

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is straightforward and necessary - it removes a deprecated model option from a dropdown menu. The change is isolated to a single line in one configuration file, poses no breaking change risk for valid models, and aligns with the upstream Perplexity API documentation.
  • No files require special attention

Important Files Changed

Filename Overview
apps/sim/blocks/blocks/perplexity.ts Removed deprecated sonar-reasoning model from the model dropdown options

Sequence Diagram

sequenceDiagram
    participant User
    participant PerplexityBlock
    participant ModelDropdown
    participant PerplexityAPI

    User->>PerplexityBlock: Configure block settings
    User->>ModelDropdown: Select model
    Note over ModelDropdown: sonar-reasoning removed<br/>Available: sonar, sonar-pro,<br/>sonar-deep-research,<br/>sonar-reasoning-pro
    ModelDropdown-->>User: Display available models
    User->>PerplexityBlock: Execute with selected model
    PerplexityBlock->>PerplexityAPI: Send request with valid model
    PerplexityAPI-->>PerplexityBlock: Return response
    PerplexityBlock-->>User: Display result
Loading

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