Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from lobehub:main #86

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

# Changelog

### [Version 1.16.8](https://github.com/lobehub/lobe-chat/compare/v1.16.7...v1.16.8)

<sup>Released on **2024-09-12**</sup>

#### 💄 Styles

- **misc**: Improve models and add more info for providers and models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

- **misc**: Improve models and add more info for providers and models, closes [#3911](https://github.com/lobehub/lobe-chat/issues/3911) ([8a8fc6a](https://github.com/lobehub/lobe-chat/commit/8a8fc6a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.16.7](https://github.com/lobehub/lobe-chat/compare/v1.16.6...v1.16.7)

<sup>Released on **2024-09-11**</sup>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "1.16.7",
"version": "1.16.8",
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
"keywords": [
"framework",
Expand Down
91 changes: 23 additions & 68 deletions src/config/modelProviders/ai360.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://ai.360.cn/platform/docs/overview
const Ai360: ModelProviderCard = {
chatModels: [
{
Expand All @@ -9,100 +8,56 @@ const Ai360: ModelProviderCard = {
functionCall: false,
id: '360gpt2-pro',
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
tokens: 8192,
},
{
displayName: '360GPT Pro',
functionCall: false,
id: '360gpt-pro',
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
tokens: 8192,
},
{
displayName: '360GPT Pro Perf',
functionCall: false,
id: '360gpt-pro-perf',
maxOutput: 7000,
tokens: 8192,
},
{
displayName: '360GPT Pro sc202401v3',
functionCall: false,
id: '360gpt-pro-sc202401v3',
maxOutput: 2048,
tokens: 4096,
},
{
displayName: '360GPT Pro sc202401v2',
functionCall: false,
id: '360gpt-pro-sc202401v2',
maxOutput: 2048,
tokens: 4096,
},
{
displayName: '360GPT Pro sc202401v1',
functionCall: false,
id: '360gpt-pro-sc202401v1',
maxOutput: 2048,
tokens: 4096,
},
{
displayName: '360GPT Pro v2.0.3',
functionCall: false,
id: '360gpt-pro-v2.0.3',
maxOutput: 2048,
tokens: 4096,
},
{
displayName: '360GPT Turbo',
enabled: true,
functionCall: false,
id: '360gpt-turbo',
maxOutput: 8192,
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 2,
output: 2,
},
tokens: 8192,
},
{
displayName: '360GPT Turbo Responsibility 8K',
enabled: true,
functionCall: false,
id: '360gpt-turbo-responsibility-8k',
maxOutput: 2048,
tokens: 8192,
},
{
displayName: '360GPT Turbo 32K Responsibility 240530',
functionCall: false,
id: '360gpt-turbo-32k-responsibility-240530',
maxOutput: 32_000,
tokens: 32_000,
},
{
displayName: '360GPT Turbo 32K Responsibility 240516',
functionCall: false,
id: '360gpt-turbo-32k-responsibility-240516',
maxOutput: 32_000,
tokens: 32_000,
},
{
displayName: '360GPT_S1_QIYUAN',
functionCall: false,
id: '360GPT_S1_QIYUAN',
maxOutput: 2048,
tokens: 4096,
},
{
displayName: '360GPT_S2_V9',
functionCall: false,
id: '360GPT_S2_V9',
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 2,
output: 2,
},
tokens: 8192,
},
],
checkModel: '360gpt-turbo',
disableBrowserRequest: true,
id: 'ai360',
modelList: { showModelFetcher: true },
modelsUrl: 'https://ai.360.cn/platform/docs/overview',
name: '360 AI',
url: 'https://ai.360.com',
};

export default Ai360;
58 changes: 48 additions & 10 deletions src/config/modelProviders/anthropic.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://docs.anthropic.com/claude/docs/models-overview#model-comparison
const Anthropic: ModelProviderCard = {
chatModels: [
{
Expand All @@ -11,67 +10,106 @@ const Anthropic: ModelProviderCard = {
functionCall: true,
id: 'claude-3-5-sonnet-20240620',
maxOutput: 8192,
pricing: {
cachedInput: 0.3,
input: 3,
output: 15,
writeCacheInput: 3.75,
},
releasedAt: '2024-06-20',
tokens: 200_000,
vision: true,
},
{
description:
'Ideal balance of intelligence and speed for enterprise workloads. Maximum utility at a lower price, dependable, balanced for scaled deployments',
displayName: 'Claude 3 Sonnet',
'Fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance',
displayName: 'Claude 3 Haiku',
enabled: true,
functionCall: true,
id: 'claude-3-sonnet-20240229',
id: 'claude-3-haiku-20240307',
maxOutput: 4096,
pricing: {
input: 0.25,
output: 1.25,
},
releasedAt: '2024-03-07',
tokens: 200_000,
vision: true,
},
{
description:
'Most powerful model for highly complex tasks. Top-level performance, intelligence, fluency, and understanding',
displayName: 'Claude 3 Opus',
'Ideal balance of intelligence and speed for enterprise workloads. Maximum utility at a lower price, dependable, balanced for scaled deployments',
displayName: 'Claude 3 Sonnet',
enabled: true,
functionCall: true,
id: 'claude-3-opus-20240229',
id: 'claude-3-sonnet-20240229',
maxOutput: 4096,
pricing: {
input: 3,
output: 15,
},
releasedAt: '2024-02-29',
tokens: 200_000,
vision: true,
},
{
description:
'Fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance',
displayName: 'Claude 3 Haiku',
'Most powerful model for highly complex tasks. Top-level performance, intelligence, fluency, and understanding',
displayName: 'Claude 3 Opus',
enabled: true,
functionCall: true,
id: 'claude-3-haiku-20240307',
id: 'claude-3-opus-20240229',
maxOutput: 4096,
pricing: {
input: 15,
output: 75,
},
releasedAt: '2024-02-29',
tokens: 200_000,
vision: true,
},
{
displayName: 'Claude 2.1',
id: 'claude-2.1',
maxOutput: 4096,
pricing: {
input: 8,
output: 24,
},
releasedAt: '2023-11-21',
tokens: 200_000,
},
{
displayName: 'Claude 2.0',
id: 'claude-2.0',
maxOutput: 4096,
pricing: {
input: 8,
output: 24,
},
releasedAt: '2023-07-11',
tokens: 100_000,
},
{
displayName: 'Claude Instant 1.2',
id: 'claude-instant-1.2',
maxOutput: 4096,
pricing: {
input: 0.8,
output: 2.4,
},
releasedAt: '2023-08-09',
tokens: 100_000,
},
],
checkModel: 'claude-3-haiku-20240307',
id: 'anthropic',
modelsUrl: 'https://docs.anthropic.com/en/docs/about-claude/models#model-names',
name: 'Anthropic',
proxyUrl: {
placeholder: 'https://api.anthropic.com',
},
url: 'https://anthropic.com',
};

export default Anthropic;
41 changes: 30 additions & 11 deletions src/config/modelProviders/baichuan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,73 @@ import { ModelProviderCard } from '@/types/llm';
const Baichuan: ModelProviderCard = {
chatModels: [
{
description: '模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
description:
'模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
displayName: 'Baichuan 4',
enabled: true,
functionCall: true,
id: 'Baichuan4',
maxOutput: 4096,
pricing: {
currency: 'CNY',
input: 100,
output: 100,
},
tokens: 32_768,
},
{
description: '针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
description:
'针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
displayName: 'Baichuan 3 Turbo',
enabled: true,
functionCall: true,
id: 'Baichuan3-Turbo',
maxOutput: 8192,
pricing: {
currency: 'CNY',
input: 12,
output: 12,
},
tokens: 32_768,
},
{
description: '具备 128K 超长上下文窗口,针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
description:
'具备 128K 超长上下文窗口,针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
displayName: 'Baichuan 3 Turbo 128k',
enabled: true,
id: 'Baichuan3-Turbo-128k',
maxOutput: 4096,
pricing: {
currency: 'CNY',
input: 24,
output: 24,
},
tokens: 128_000,
},
{
description: '采用搜索增强技术实现大模型与领域知识、全网知识的全面链接。支持PDF、Word等多种文档上传及网址输入,信息获取及时、全面,输出结果准确、专业。',
description:
'采用搜索增强技术实现大模型与领域知识、全网知识的全面链接。支持PDF、Word等多种文档上传及网址输入,信息获取及时、全面,输出结果准确、专业。',
displayName: 'Baichuan 2 Turbo',
id: 'Baichuan2-Turbo',
maxOutput: 8192,
pricing: {
currency: 'CNY',
input: 8,
output: 8,
},
tokens: 32_768,
},
{
description: '具备 192K 超长上下文窗口,采用搜索增强技术实现大模型与领域知识、全网知识的全面链接。支持PDF、Word等多种文档上传及网址输入,信息获取及时、全面,输出结果准确、专业。',
displayName: 'Baichuan 2 Turbo 192k',
id: 'Baichuan2-Turbo-192k',
maxOutput: 2048,
tokens: 192_000,
},
],
checkModel: 'Baichuan3-Turbo',
id: 'baichuan',
modelList: { showModelFetcher: true },
modelsUrl: 'https://platform.baichuan-ai.com/price',
name: 'Baichuan',
smoothing: {
speed: 2,
text: true,
},
url: 'https://platform.baichuan-ai.com',
};

export default Baichuan;
Loading
Loading