Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 12, 2024
2 parents 4d153bf + ea9ff00 commit 7cb98ea
Show file tree
Hide file tree
Showing 34 changed files with 1,026 additions and 226 deletions.
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
102 changes: 34 additions & 68 deletions src/config/modelProviders/ai360.ts
Original file line number Diff line number Diff line change
@@ -1,108 +1,74 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://ai.360.cn/platform/docs/overview
// ref: https://ai.360.cn/platform/docs/overview
const Ai360: ModelProviderCard = {
chatModels: [
{
description:
'360GPT2 Pro 是 360 公司推出的高级自然语言处理模型,具备卓越的文本生成和理解能力,尤其在生成与创作领域表现出色,能够处理复杂的语言转换和角色演绎任务。',
displayName: '360GPT2 Pro',
enabled: true,
functionCall: false,
id: '360gpt2-pro',
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 5,
output: 5,
},
tokens: 8192,
},
{
description:
'360GPT Pro 作为 360 AI 模型系列的重要成员,以高效的文本处理能力满足多样化的自然语言应用场景,支持长文本理解和多轮对话等功能。',
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,
},
{
description:
'360GPT Turbo 提供强大的计算和对话能力,具备出色的语义理解和生成效率,是企业和开发者理想的智能助理解决方案。',
displayName: '360GPT Turbo',
enabled: true,
functionCall: false,
id: '360gpt-turbo',
maxOutput: 8192,
maxOutput: 7000,
pricing: {
currency: 'CNY',
input: 2,
output: 2,
},
tokens: 8192,
},
{
description:
'360GPT Turbo Responsibility 8K 强调语义安全和责任导向,专为对内容安全有高度要求的应用场景设计,确保用户体验的准确性与稳健性。',
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',
description:
'360 AI 是 360 公司推出的 AI 模型和服务平台,提供多种先进的自然语言处理模型,包括 360GPT2 Pro、360GPT Pro、360GPT Turbo 和 360GPT Turbo Responsibility 8K。这些模型结合了大规模参数和多模态能力,广泛应用于文本生成、语义理解、对话系统与代码生成等领域。通过灵活的定价策略,360 AI 满足多样化用户需求,支持开发者集成,推动智能化应用的革新和发展。',
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;
68 changes: 57 additions & 11 deletions src/config/modelProviders/anthropic.ts
Original file line number Diff line number Diff line change
@@ -1,77 +1,123 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://docs.anthropic.com/claude/docs/models-overview#model-comparison
// ref: https://docs.anthropic.com/en/docs/about-claude/models#model-names
const Anthropic: ModelProviderCard = {
chatModels: [
{
description:
'Claude 3.5 Sonnet raises the industry bar for intelligence, outperforming competitor models and Claude 3 Opus on a wide range of evaluations, with the speed and cost of our mid-tier model, Claude 3 Sonnet.',
'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
displayName: 'Claude 3.5 Sonnet',
enabled: true,
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',
'Claude 3 Haiku 是 Anthropic 的最快且最紧凑的模型,旨在实现近乎即时的响应。它具有快速且准确的定向性能。',
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',
'Claude 3 Sonnet 在智能和速度方面为企业工作负载提供了理想的平衡。它以更低的价格提供最大效用,可靠且适合大规模部署。',
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',
'Claude 3 Opus 是 Anthropic 用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
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,
},
{
description:
'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
displayName: 'Claude 2.1',
id: 'claude-2.1',
maxOutput: 4096,
pricing: {
input: 8,
output: 24,
},
releasedAt: '2023-11-21',
tokens: 200_000,
},
{
description:
'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
displayName: 'Claude 2.0',
id: 'claude-2.0',
maxOutput: 4096,
pricing: {
input: 8,
output: 24,
},
releasedAt: '2023-07-11',
tokens: 100_000,
},
{
description: 'Anthropic 的模型用于低延迟、高吞吐量的文本生成,支持生成数百页的文本。',
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',
description:
'Anthropic 是一家专注于人工智能研究和开发的公司,提供了一系列先进的语言模型,如 Claude 3.5 Sonnet、Claude 3 Sonnet、Claude 3 Opus 和 Claude 3 Haiku。这些模型在智能、速度和成本之间取得了理想的平衡,适用于从企业级工作负载到快速响应的各种应用场景。Claude 3.5 Sonnet 作为其最新模型,在多项评估中表现优异,同时保持了较高的性价比。',
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;
15 changes: 12 additions & 3 deletions src/config/modelProviders/azure.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { ModelProviderCard } from '@/types/llm';

// ref https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models
// ref: https://learn.microsoft.com/azure/ai-services/openai/concepts/models
const Azure: ModelProviderCard = {
chatModels: [
{
deploymentName: 'gpt-35-turbo',
description: 'GPT 3.5 Turbo,适用于各种文本生成和理解任务',
description:
'GPT 3.5 Turbo,OpenAI提供的高效模型,适用于聊天和文本生成任务,支持并行函数调用。',
displayName: 'GPT 3.5 Turbo',
enabled: true,
functionCall: true,
Expand All @@ -15,13 +16,15 @@ const Azure: ModelProviderCard = {
},
{
deploymentName: 'gpt-35-turbo-16k',
description: 'GPT 3.5 Turbo 16k,高容量文本生成模型,适合复杂任务。',
displayName: 'GPT 3.5 Turbo',
functionCall: true,
id: 'gpt-35-turbo-16k',
tokens: 16_384,
},
{
deploymentName: 'gpt-4-turbo',
description: 'GPT 4 Turbo,多模态模型,提供杰出的语言理解和生成能力,同时支持图像输入。',
displayName: 'GPT 4 Turbo',
enabled: true,
functionCall: true,
Expand All @@ -31,14 +34,15 @@ const Azure: ModelProviderCard = {
},
{
deploymentName: 'gpt-4-vision',
description: 'GPT-4 视觉预览版,支持视觉任务',
description: 'GPT-4 视觉预览版,专为图像分析和处理任务设计。',
displayName: 'GPT 4 Turbo with Vision Preview',
id: 'gpt-4-vision-preview',
tokens: 128_000,
vision: true,
},
{
deploymentName: 'gpt-4o-mini',
description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
displayName: 'GPT 4o Mini',
enabled: true,
functionCall: true,
Expand All @@ -48,6 +52,7 @@ const Azure: ModelProviderCard = {
},
{
deploymentName: 'gpt-4o',
description: 'GPT-4o 是最新的多模态模型,结合高级文本和图像处理能力。',
displayName: 'GPT 4o',
enabled: true,
functionCall: true,
Expand All @@ -57,8 +62,12 @@ const Azure: ModelProviderCard = {
},
],
defaultShowBrowserRequest: true,
description:
'Azure 提供多种先进的AI模型,包括GPT-3.5和最新的GPT-4系列,支持多种数据类型和复杂任务,致力于安全、可靠和可持续的AI解决方案。',
id: 'azure',
modelsUrl: 'https://learn.microsoft.com/azure/ai-services/openai/concepts/models',
name: 'Azure',
url: 'https://azure.microsoft.com',
};

export default Azure;
Loading

0 comments on commit 7cb98ea

Please sign in to comment.