From 06cb94620450ff6d82469321565da23952897795 Mon Sep 17 00:00:00 2001 From: Zhijie He Date: Fri, 2 Aug 2024 01:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20update=20Perplexity=20m?= =?UTF-8?q?odels=20(#3380)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 💄 style: update Perplexity models * 💄 style: update model name --- src/config/modelProviders/perplexity.ts | 45 ++++++++++++------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/src/config/modelProviders/perplexity.ts b/src/config/modelProviders/perplexity.ts index d4403f407f89b..57947adc70232 100644 --- a/src/config/modelProviders/perplexity.ts +++ b/src/config/modelProviders/perplexity.ts @@ -4,44 +4,41 @@ import { ModelProviderCard } from '@/types/llm'; const Perplexity: ModelProviderCard = { chatModels: [ { - displayName: 'Perplexity 8B Chat', - id: 'llama-3-sonar-small-32k-chat', - tokens: 32_768, - }, - { - displayName: 'Perplexity 70B Chat', + displayName: 'Llama3.1 Sonar Small Chat', enabled: true, - id: 'llama-3-sonar-large-32k-chat', - tokens: 32_768, + id: 'llama-3.1-sonar-small-128k-chat', + tokens: 128_000, }, { - displayName: 'Perplexity 8B Online', - id: 'llama-3-sonar-small-32k-online', - tokens: 28_000, + displayName: 'Llama3.1 Sonar Large Chat', + enabled: true, + id: 'llama-3.1-sonar-large-128k-chat', + tokens: 128_000, }, { - displayName: 'Perplexity 70B Online', + displayName: 'Llama3.1 Sonar Small Online', enabled: true, - id: 'llama-3-sonar-large-32k-online', - tokens: 28_000, + id: 'llama-3.1-sonar-small-128k-online', + tokens: 128_000, }, { - displayName: 'Llama3 8B Instruct', - id: 'llama-3-8b-instruct', - tokens: 8192, + displayName: 'Llama3.1 Sonar Large Online', + enabled: true, + id: 'llama-3.1-sonar-large-128k-online', + tokens: 128_000, }, { - displayName: 'Llama3 70B Instruct', - id: 'llama-3-70b-instruct', - tokens: 8192, + displayName: 'Llama3.1 8B Instruct', + id: 'llama-3.1-8b-instruct', + tokens: 128_000, }, { - displayName: 'Mixtral 8x7B Instruct', - id: 'mixtral-8x7b-instruct', - tokens: 16_384, + displayName: 'Llama3.1 70B Instruct', + id: 'llama-3.1-70b-instruct', + tokens: 128_000, }, ], - checkModel: 'llama-3-8b-instruct', + checkModel: 'llama-3.1-8b-instruct', id: 'perplexity', name: 'Perplexity', proxyUrl: {