feat(core): upgrade pplx models (#10115)

Old models will be deprecated and will no longer be available to use after 2/22/2025.

https://docs.perplexity.ai/guides/model-cards
This commit is contained in:
akumatus
2025-02-12 07:21:10 +00:00
parent a589ce151e
commit 573af16aa4
2 changed files with 5 additions and 4 deletions

View File

@@ -979,7 +979,7 @@ When referencing information from the provided documents in your response:
}, },
{ {
name: 'Search With AFFiNE AI', name: 'Search With AFFiNE AI',
model: 'llama-3.1-sonar-small-128k-online', model: 'sonar',
messages: [], messages: [],
}, },
// use for believer plan // use for believer plan

View File

@@ -167,9 +167,10 @@ export class PerplexityProvider implements CopilotTextToTextProvider {
} }
readonly availableModels = [ readonly availableModels = [
'llama-3.1-sonar-small-128k-online', 'sonar',
'llama-3.1-sonar-large-128k-online', 'sonar-pro',
'llama-3.1-sonar-huge-128k-online', 'sonar-reasoning',
'sonar-reasoning-pro',
]; ];
get type(): CopilotProviderType { get type(): CopilotProviderType {