mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-16 12:36:07 +00:00
💄 style: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model (#8213)
This commit is contained in:
@@ -1,6 +1,31 @@
|
||||
import { AIChatModelCard } from '@/types/aiModel';
|
||||
|
||||
const googleChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
reasoning: true,
|
||||
search: true,
|
||||
vision: true,
|
||||
},
|
||||
contextWindowTokens: 1_048_576 + 65_536,
|
||||
description:
|
||||
'Gemini 2.5 Pro 是 Google 最先进的思维模型,能够对代码、数学和STEM领域的复杂问题进行推理,以及使用长上下文分析大型数据集、代码库和文档。',
|
||||
displayName: 'Gemini 2.5 Pro (Paid)',
|
||||
id: 'gemini-2.5-pro',
|
||||
maxOutput: 65_536,
|
||||
pricing: {
|
||||
input: 1.25, // prompts <= 200k tokens
|
||||
output: 10, // prompts <= 200k tokens
|
||||
},
|
||||
releasedAt: '2025-06-17',
|
||||
settings: {
|
||||
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
||||
searchImpl: 'params',
|
||||
searchProvider: 'google',
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
@@ -74,6 +99,31 @@ const googleChatModels: AIChatModelCard[] = [
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
reasoning: true,
|
||||
search: 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',
|
||||
settings: {
|
||||
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
||||
searchImpl: 'params',
|
||||
searchProvider: 'google',
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
@@ -145,6 +195,32 @@ const googleChatModels: AIChatModelCard[] = [
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
reasoning: true,
|
||||
search: 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',
|
||||
settings: {
|
||||
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
||||
searchImpl: 'params',
|
||||
searchProvider: 'google',
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
|
||||
@@ -2,6 +2,26 @@ 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,
|
||||
@@ -41,6 +61,25 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
||||
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,
|
||||
@@ -60,6 +99,26 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user