Skip to content

Commit

Permalink
💄 style: Add gemini new model (lobehub#5546)
Browse files Browse the repository at this point in the history
* Update google.ts

* Update google.ts
  • Loading branch information
sxjeru authored Jan 22, 2025
1 parent 17aca7d commit ebdd626
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
21 changes: 20 additions & 1 deletion src/config/aiModels/google.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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: {
Expand Down
18 changes: 17 additions & 1 deletion src/config/modelProviders/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ebdd626

Please sign in to comment.