💄 style: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model (#8213)

This commit is contained in:
afon
2025-06-18 20:17:25 +08:00
committed by GitHub
parent 6a55be3ed8
commit 39ef8be0c7
2 changed files with 135 additions and 0 deletions
+76
View File
@@ -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,
+59
View File
@@ -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,