Skip to content

fix: update Perplexity models to match current API#2005

Open
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
KushalLukhi:fix/update-perplexity-models
Open

fix: update Perplexity models to match current API#2005
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
KushalLukhi:fix/update-perplexity-models

Conversation

@KushalLukhi
Copy link
Copy Markdown

Fixes #1836

Problem

The Perplexity models list was outdated, causing errors when users tried to use models like sonar-medium-online which are no longer available in the Perplexity API.

Solution

Updated the Perplexity LLM list to use the current model names as documented at https://docs.perplexity.ai/docs/model-cards

Removed deprecated models:

  • mixtral-8x7b-instruct
  • mistral-7b-instruct
  • codellama-70b-instruct
  • sonar-small-chat
  • sonar-small-online
  • sonar-medium-chat
  • sonar-medium-online

Added new models:

  • sonar-reasoning-pro (Advanced search with Chain of Thought reasoning)
  • sonar-reasoning (Cost-effective reasoning model)
  • sonar-pro (Advanced search for complex queries)
  • sonar (Lightweight model for simple tasks)
  • sonar-deep-research (Expert-level research model)

Testing

Users can now select the updated Perplexity models from the model dropdown and make successful API calls without encountering the "Invalid model" error.

…y#1836)

Update the Perplexity LLM list to use the current model names as documented
at https://docs.perplexity.ai/docs/model-cards

Removed deprecated models:
- mixtral-8x7b-instruct
- mistral-7b-instruct
- codellama-70b-instruct
- sonar-small-chat
- sonar-small-online
- sonar-medium-chat
- sonar-medium-online

Added new models:
- sonar-reasoning-pro
- sonar-reasoning
- sonar-pro
- sonar
- sonar-deep-research
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.

Perplexity Models Not Supported

1 participant