mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-15 04:00:09 +00:00
💄 style: Update perplexity models (#5624)
* Update perplexity.ts
* Update perplexity.ts
* Update perplexity.ts
* 👌更新快照
This commit is contained in:
@@ -2,64 +2,57 @@ import { AIChatModelCard } from '@/types/aiModel';
|
||||
|
||||
const perplexityChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'由 DeepSeek 推理模型提供支持的新 API 产品。',
|
||||
displayName: 'Sonar Reasoning',
|
||||
enabled: true,
|
||||
id: 'sonar-reasoning',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 200_000,
|
||||
description:
|
||||
'支持搜索上下文的高级搜索产品,支持高级查询和跟进。',
|
||||
displayName: 'Sonar Pro',
|
||||
enabled: true,
|
||||
id: 'sonar-pro',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'基于搜索上下文的轻量级搜索产品,比 Sonar Pro 更快、更便宜。',
|
||||
displayName: 'Sonar',
|
||||
enabled: true,
|
||||
id: 'sonar',
|
||||
type: 'chat',
|
||||
},
|
||||
// The following will be deprecated on 02-22
|
||||
{
|
||||
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,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
|
||||
displayName: 'Llama 3.1 Sonar Large Online',
|
||||
enabled: true,
|
||||
id: 'llama-3.1-sonar-large-128k-online',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
|
||||
displayName: 'Llama 3.1 Sonar Huge Online',
|
||||
enabled: true,
|
||||
id: 'llama-3.1-sonar-huge-128k-online',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
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',
|
||||
type: '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',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
description:
|
||||
'Llama 3.1 8B Instruct 模型,具备8B参数,支持画面指示任务的高效执行,提供优质的文本生成能力。',
|
||||
id: 'llama-3.1-8b-instruct',
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
description:
|
||||
'Llama 3.1 70B Instruct 模型,具备70B参数,能在大型文本生成和指示任务中提供卓越性能。',
|
||||
id: 'llama-3.1-70b-instruct',
|
||||
type: 'chat',
|
||||
},
|
||||
];
|
||||
|
||||
export const allModels = [...perplexityChatModels];
|
||||
|
||||
@@ -4,59 +4,53 @@ import { ModelProviderCard } from '@/types/llm';
|
||||
const Perplexity: ModelProviderCard = {
|
||||
chatModels: [
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'由 DeepSeek 推理模型提供支持的新 API 产品。',
|
||||
displayName: 'Sonar Reasoning',
|
||||
enabled: true,
|
||||
id: 'sonar-reasoning',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 200_000,
|
||||
description:
|
||||
'支持搜索上下文的高级搜索产品,支持高级查询和跟进。',
|
||||
displayName: 'Sonar Pro',
|
||||
enabled: true,
|
||||
id: 'sonar-pro',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'基于搜索上下文的轻量级搜索产品,比 Sonar Pro 更快、更便宜。',
|
||||
displayName: 'Sonar',
|
||||
enabled: true,
|
||||
id: 'sonar',
|
||||
},
|
||||
// The following will be deprecated on 02-22
|
||||
{
|
||||
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',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'Llama 3.1 Sonar Large Online 模型,具备70B参数,支持约127,000个标记的上下文长度,适用于高容量和多样化聊天任务。',
|
||||
displayName: 'Llama 3.1 Sonar Large Online',
|
||||
enabled: true,
|
||||
id: 'llama-3.1-sonar-large-128k-online',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
contextWindowTokens: 127_072,
|
||||
description:
|
||||
'Llama 3.1 Sonar Huge Online 模型,具备405B参数,支持约127,000个标记的上下文长度,设计用于复杂的在线聊天应用。',
|
||||
displayName: 'Llama 3.1 Sonar Huge Online',
|
||||
enabled: true,
|
||||
id: 'llama-3.1-sonar-huge-128k-online',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
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',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
description:
|
||||
'Llama 3.1 8B Instruct 模型,具备8B参数,支持画面指示任务的高效执行,提供优质的文本生成能力。',
|
||||
id: 'llama-3.1-8b-instruct',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 128_000,
|
||||
description:
|
||||
'Llama 3.1 70B Instruct 模型,具备70B参数,能在大型文本生成和指示任务中提供卓越性能。',
|
||||
id: 'llama-3.1-70b-instruct',
|
||||
},
|
||||
],
|
||||
checkModel: 'llama-3.1-8b-instruct',
|
||||
checkModel: 'sonar',
|
||||
description:
|
||||
'Perplexity 是一家领先的对话生成模型提供商,提供多种先进的Llama 3.1模型,支持在线和离线应用,特别适用于复杂的自然语言处理任务。',
|
||||
id: 'perplexity',
|
||||
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user