💄 style: Add gemini new model (#5546)

* Update google.ts

* Update google.ts
This commit is contained in:
sxjeru
2025-01-22 21:59:45 +08:00
committed by GitHub
parent 17aca7df8a
commit ebdd626b7f
2 changed files with 37 additions and 2 deletions
+20 -1
View File
@@ -1,6 +1,26 @@
import { AIChatModelCard } from '@/types/aiModel';
const googleChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
vision: true,
},
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
enabled: true,
id: 'gemini-2.0-flash-thinking-exp-01-21',
maxOutput: 65_536,
pricing: {
cachedInput: 0,
input: 0,
output: 0,
},
releasedAt: '2025-01-21',
type: 'chat',
},
{
abilities: {
functionCall: true,
@@ -10,7 +30,6 @@ const googleChatModels: AIChatModelCard[] = [
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
enabled: true,
id: 'gemini-2.0-flash-thinking-exp-1219',
maxOutput: 8192,
pricing: {
+17 -1
View File
@@ -3,12 +3,28 @@ import { ModelProviderCard } from '@/types/llm';
// ref: https://ai.google.dev/gemini-api/docs/models/gemini
const Google: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 1_048_576 + 65_536,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
enabled: true,
functionCall: true,
id: 'gemini-2.0-flash-thinking-exp-01-21',
maxOutput: 65_536,
pricing: {
cachedInput: 0,
input: 0,
output: 0,
},
releasedAt: '2025-01-21',
vision: true,
},
{
contextWindowTokens: 32_767 + 8192,
description:
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
enabled: true,
functionCall: true,
id: 'gemini-2.0-flash-thinking-exp-1219',
maxOutput: 8192,