@lobehub/chat
Version:
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.
199 lines (195 loc) • 5.6 kB
text/typescript
import { AIChatModelCard } from '@/types/aiModel';
// ref: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models
const vertexaiChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.5 Pro 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
displayName: 'Gemini 2.5 Pro',
enabled: true,
id: 'gemini-2.5-pro',
maxOutput: 65_536,
pricing: {
input: 1.25, // prompts <= 200k tokens
output: 10, // prompts <= 200k tokens
},
releasedAt: '2025-06-17',
type: 'chat',
},
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.5 Pro Preview 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
displayName: 'Gemini 2.5 Pro Preview 05-06',
enabled: true,
id: 'gemini-2.5-pro-preview-05-06',
maxOutput: 65_536,
pricing: {
input: 1.25, // prompts <= 200k tokens
output: 10, // prompts <= 200k tokens
},
releasedAt: '2025-05-06',
type: 'chat',
},
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.5 Pro Preview 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
displayName: 'Gemini 2.5 Pro Preview 03-25',
id: 'gemini-2.5-pro-preview-03-25',
maxOutput: 65_536,
pricing: {
input: 1.25, // prompts <= 200k tokens
output: 10, // prompts <= 200k tokens
},
releasedAt: '2025-04-09',
type: 'chat',
},
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description: 'Gemini 2.5 Flash 是 Google 性价比最高的模型,提供全面的功能。',
displayName: 'Gemini 2.5 Flash',
enabled: true,
id: 'gemini-2.5-flash',
maxOutput: 65_536,
pricing: {
input: 0.3,
output: 2.5,
},
releasedAt: '2025-06-17',
type: 'chat',
},
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description: 'Gemini 2.5 Flash Preview 是 Google 性价比最高的模型,提供全面的功能。',
displayName: 'Gemini 2.5 Flash Preview 04-17',
enabled: true,
id: 'gemini-2.5-flash-preview-04-17',
maxOutput: 65_536,
pricing: {
input: 0.15,
output: 3.5, // Thinking
},
releasedAt: '2025-04-17',
type: 'chat',
},
{
abilities: {
functionCall: true,
reasoning: true,
vision: true,
},
contextWindowTokens: 1_000_000 + 64_000,
description:
'Gemini 2.5 Flash-Lite Preview 是 Google 最小、性价比最高的模型,专为大规模使用而设计。',
displayName: 'Gemini 2.5 Flash-Lite Preview 06-17',
enabled: true,
id: 'gemini-2.5-flash-lite-preview-06-17',
maxOutput: 64_000,
pricing: {
input: 0.1,
output: 0.4,
},
releasedAt: '2025-06-17',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 8192,
description:
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
displayName: 'Gemini 2.0 Flash',
id: 'gemini-2.0-flash',
maxOutput: 8192,
pricing: {
cachedInput: 0.0375,
input: 0.15,
output: 0.6,
},
releasedAt: '2025-02-05',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 8192,
description: 'Gemini 2.0 Flash 模型变体,针对成本效益和低延迟等目标进行了优化。',
displayName: 'Gemini 2.0 Flash-Lite',
id: 'gemini-2.0-flash-lite',
maxOutput: 8192,
pricing: {
cachedInput: 0.018_75,
input: 0.075,
output: 0.3,
},
releasedAt: '2025-02-05',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_000_000 + 8192,
description: 'Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。',
displayName: 'Gemini 1.5 Flash 002',
id: 'gemini-1.5-flash-002',
maxOutput: 8192,
pricing: {
input: 0.075,
output: 0.3,
},
releasedAt: '2024-09-25',
type: 'chat',
},
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 2_000_000 + 8192,
description:
'Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。',
displayName: 'Gemini 1.5 Pro 002',
id: 'gemini-1.5-pro-002',
maxOutput: 8192,
pricing: {
input: 1.25,
output: 2.5,
},
releasedAt: '2024-09-24',
type: 'chat',
},
];
export const allModels = [...vertexaiChatModels];
export default allModels;