Skip to content

Commit

Permalink
💄 style: Update perplexity models (#5624)
Browse files Browse the repository at this point in the history
* Update perplexity.ts

* Update perplexity.ts

* Update perplexity.ts

* 👌更新快照
  • Loading branch information
sxjeru authored Feb 3, 2025
1 parent 43d5fde commit 58a86fc
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 71 deletions.
57 changes: 25 additions & 32 deletions src/config/aiModels/perplexity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,55 @@ import { AIChatModelCard } from '@/types/aiModel';

const perplexityChatModels: AIChatModelCard[] = [
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Small Online 模型,具备8B参数,支持约127,000个标记的上下文长度,专为在线聊天设计,能高效处理各种文本交互。',
displayName: 'Llama 3.1 Sonar Small Online',
enabled: true,
id: 'llama-3.1-sonar-small-128k-online',
type: 'chat',
},
{
contextWindowTokens: 128_000,
description:
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
displayName: 'Llama 3.1 Sonar Large Online',
'由 DeepSeek 推理模型提供支持的新 API 产品。',
displayName: 'Sonar Reasoning',
enabled: true,
id: 'llama-3.1-sonar-large-128k-online',
id: 'sonar-reasoning',
type: 'chat',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 200_000,
description:
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
displayName: 'Llama 3.1 Sonar Huge Online',
'支持搜索上下文的高级搜索产品,支持高级查询和跟进。',
displayName: 'Sonar Pro',
enabled: true,
id: 'llama-3.1-sonar-huge-128k-online',
id: 'sonar-pro',
type: 'chat',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Small Chat 模型,具备8B参数,专为离线聊天设计,支持约127,000个标记的上下文长度。',
displayName: 'Llama 3.1 Sonar Small Chat',
'基于搜索上下文的轻量级搜索产品,比 Sonar Pro 更快、更便宜。',
displayName: 'Sonar',
enabled: true,
id: 'llama-3.1-sonar-small-128k-chat',
id: 'sonar',
type: 'chat',
},
// The following will be deprecated on 02-22
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Large Chat 模型,具备70B参数,支持约127,000个标记的上下文长度,适合于复杂的离线聊天任务。',
displayName: 'Llama 3.1 Sonar Large Chat',
enabled: true,
id: 'llama-3.1-sonar-large-128k-chat',
'Llama 3.1 Sonar Small Online 模型,具备8B参数,支持约127,000个标记的上下文长度,专为在线聊天设计,能高效处理各种文本交互。',
displayName: 'Llama 3.1 Sonar Small Online',
id: 'llama-3.1-sonar-small-128k-online',
type: 'chat',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 8B Instruct 模型,具备8B参数,支持画面指示任务的高效执行,提供优质的文本生成能力。',
id: 'llama-3.1-8b-instruct',
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
displayName: 'Llama 3.1 Sonar Large Online',
id: 'llama-3.1-sonar-large-128k-online',
type: 'chat',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 70B Instruct 模型,具备70B参数,能在大型文本生成和指示任务中提供卓越性能。',
id: 'llama-3.1-70b-instruct',
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
displayName: 'Llama 3.1 Sonar Huge Online',
id: 'llama-3.1-sonar-huge-128k-online',
type: 'chat',
},
];
Expand Down
58 changes: 26 additions & 32 deletions src/config/modelProviders/perplexity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,53 @@ import { ModelProviderCard } from '@/types/llm';
const Perplexity: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Small Online 模型,具备8B参数,支持约127,000个标记的上下文长度,专为在线聊天设计,能高效处理各种文本交互。',
displayName: 'Llama 3.1 Sonar Small Online',
'由 DeepSeek 推理模型提供支持的新 API 产品。',
displayName: 'Sonar Reasoning',
enabled: true,
id: 'llama-3.1-sonar-small-128k-online',
id: 'sonar-reasoning',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 200_000,
description:
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
displayName: 'Llama 3.1 Sonar Large Online',
'支持搜索上下文的高级搜索产品,支持高级查询和跟进。',
displayName: 'Sonar Pro',
enabled: true,
id: 'llama-3.1-sonar-large-128k-online',
id: 'sonar-pro',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
displayName: 'Llama 3.1 Sonar Huge Online',
'基于搜索上下文的轻量级搜索产品,比 Sonar Pro 更快、更便宜。',
displayName: 'Sonar',
enabled: true,
id: 'llama-3.1-sonar-huge-128k-online',
id: 'sonar',
},
// The following will be deprecated on 02-22
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 Sonar Small Chat 模型,具备8B参数,专为离线聊天设计,支持约127,000个标记的上下文长度。',
displayName: 'Llama 3.1 Sonar Small Chat',
enabled: true,
id: 'llama-3.1-sonar-small-128k-chat',
},
{
contextWindowTokens: 128_000,
description:
'Llama 3.1 Sonar Large Chat 模型,具备70B参数,支持约127,000个标记的上下文长度,适合于复杂的离线聊天任务。',
displayName: 'Llama 3.1 Sonar Large Chat',
enabled: true,
id: 'llama-3.1-sonar-large-128k-chat',
'Llama 3.1 Sonar Small Online 模型,具备8B参数,支持约127,000个标记的上下文长度,专为在线聊天设计,能高效处理各种文本交互。',
displayName: 'Llama 3.1 Sonar Small Online',
id: 'llama-3.1-sonar-small-128k-online',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 8B Instruct 模型,具备8B参数,支持画面指示任务的高效执行,提供优质的文本生成能力。',
id: 'llama-3.1-8b-instruct',
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
displayName: 'Llama 3.1 Sonar Large Online',
id: 'llama-3.1-sonar-large-128k-online',
},
{
contextWindowTokens: 128_000,
contextWindowTokens: 127_072,
description:
'Llama 3.1 70B Instruct 模型,具备70B参数,能在大型文本生成和指示任务中提供卓越性能。',
id: 'llama-3.1-70b-instruct',
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
displayName: 'Llama 3.1 Sonar Huge Online',
id: 'llama-3.1-sonar-huge-128k-online',
},
],
checkModel: 'llama-3.1-8b-instruct',
checkModel: 'sonar',
description:
'Perplexity 是一家领先的对话生成模型提供商,提供多种先进的Llama 3.1模型,支持在线和离线应用,特别适用于复杂的自然语言处理任务。',
id: 'perplexity',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ _These are extended-context endpoints for [Hermes 3 405B Instruct](/models/nousr
"contextWindowTokens": 127072,
"description": "Llama 3.1 Sonar is Perplexity's latest model family. It surpasses their earlier Sonar models in cost-efficiency, speed, and performance. The model is built upon the Llama 3.1 405B and has internet access.",
"displayName": "Perplexity: Llama 3.1 Sonar 405B Online",
"enabled": true,
"enabled": false,
"functionCall": false,
"id": "perplexity/llama-3.1-sonar-huge-128k-online",
"maxTokens": undefined,
Expand Down Expand Up @@ -304,7 +304,7 @@ Note: This model is experimental and not suited for production use-cases. It may
This is the online version of the [offline chat model](/models/perplexity/llama-3.1-sonar-large-128k-chat). It is focused on delivering helpful, up-to-date, and factual responses. #online",
"displayName": "Perplexity: Llama 3.1 Sonar 70B Online",
"enabled": true,
"enabled": false,
"functionCall": false,
"id": "perplexity/llama-3.1-sonar-large-128k-online",
"maxTokens": undefined,
Expand All @@ -316,7 +316,7 @@ This is the online version of the [offline chat model](/models/perplexity/llama-
This is a normal offline LLM, but the [online version](/models/perplexity/llama-3.1-sonar-large-128k-online) of this model has Internet access.",
"displayName": "Perplexity: Llama 3.1 Sonar 70B",
"enabled": true,
"enabled": false,
"functionCall": false,
"id": "perplexity/llama-3.1-sonar-large-128k-chat",
"maxTokens": undefined,
Expand All @@ -328,7 +328,7 @@ This is a normal offline LLM, but the [online version](/models/perplexity/llama-
This is the online version of the [offline chat model](/models/perplexity/llama-3.1-sonar-small-128k-chat). It is focused on delivering helpful, up-to-date, and factual responses. #online",
"displayName": "Perplexity: Llama 3.1 Sonar 8B Online",
"enabled": true,
"enabled": false,
"functionCall": false,
"id": "perplexity/llama-3.1-sonar-small-128k-online",
"maxTokens": undefined,
Expand All @@ -340,7 +340,7 @@ This is the online version of the [offline chat model](/models/perplexity/llama-
This is a normal offline LLM, but the [online version](/models/perplexity/llama-3.1-sonar-small-128k-online) of this model has Internet access.",
"displayName": "Perplexity: Llama 3.1 Sonar 8B",
"enabled": true,
"enabled": false,
"functionCall": false,
"id": "perplexity/llama-3.1-sonar-small-128k-chat",
"maxTokens": undefined,
Expand All @@ -354,7 +354,7 @@ It has demonstrated strong performance compared to leading closed-source models
To read more about the model release, [click here](https://ai.meta.com/blog/meta-llama-3/). Usage of this model is subject to [Meta's Acceptable Use Policy](https://llama.meta.com/llama3/use-policy/).",
"displayName": "Meta: Llama 3.1 70B Instruct",
"enabled": false,
"enabled": true,
"functionCall": false,
"id": "meta-llama/llama-3.1-70b-instruct",
"maxTokens": undefined,
Expand Down Expand Up @@ -384,7 +384,7 @@ It has demonstrated strong performance compared to leading closed-source models
To read more about the model release, [click here](https://ai.meta.com/blog/meta-llama-3/). Usage of this model is subject to [Meta's Acceptable Use Policy](https://llama.meta.com/llama3/use-policy/).",
"displayName": "Meta: Llama 3.1 8B Instruct",
"enabled": false,
"enabled": true,
"functionCall": false,
"id": "meta-llama/llama-3.1-8b-instruct",
"maxTokens": undefined,
Expand Down

0 comments on commit 58a86fc

Please sign in to comment.