fix: update Perplexity types and remove deprecated models#2007
Open
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
Open
fix: update Perplexity types and remove deprecated models#2007KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
Conversation
- Remove deprecated Perplexity model types (pplx-*, mixtral-8x7b-instruct, mistral-7b-instruct, llama-2-70b-chat, codellama-*-instruct, sonar-small-*, sonar-medium-*) - Add new Sonar model types (sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar, sonar-deep-research) - Update chat setting limits for new Perplexity models - Update Perplexity LLM list with current models and pricing - Align types/llms.ts with current Perplexity API model cards Fixes stale type definitions that referenced models no longer available in the Perplexity API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Perplexity model types in
types/llms.tsandlib/chat-setting-limits.tsstill reference deprecated models that are no longer available in the Perplexity API. This causes type errors and confusion for users trying to use the current Perplexity models.Solution
Updated the Perplexity type definitions to match the current API model cards at https://docs.perplexity.ai/guides/model-cards
Changes
Removed deprecated types:
pplx-7b-online,pplx-70b-onlinepplx-7b-chat,pplx-70b-chatmixtral-8x7b-instruct,mistral-7b-instructllama-2-70b-chatcodellama-34b-instruct,codellama-70b-instructsonar-small-chat,sonar-small-onlinesonar-medium-chat,sonar-medium-onlineAdded new types:
sonar-reasoning-pro- Advanced search with Chain of Thought reasoningsonar-reasoning- Cost-effective reasoning modelsonar-pro- Advanced search for complex queriessonar- Lightweight model for simple taskssonar-deep-research- Expert-level research modelTesting
Related to #1836 (Perplexity model updates)