Skip to content

Commit

Permalink
add toolChoice gemini model metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Jan 15, 2025
1 parent 27116d6 commit 1baf2af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/plugins/googleai/src/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const gemini10Pro = modelRef({
multiturn: true,
media: false,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand All @@ -117,6 +118,7 @@ export const gemini15Pro = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
versions: [
Expand All @@ -136,6 +138,7 @@ export const gemini15Flash = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
// @ts-ignore
contextCache: true,
Expand All @@ -157,6 +160,7 @@ export const gemini15Flash8b = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
versions: ['gemini-1.5-flash-8b-latest', 'gemini-1.5-flash-8b-001'],
Expand All @@ -173,6 +177,7 @@ export const gemini20FlashExp = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand All @@ -199,6 +204,7 @@ export const GENERIC_GEMINI_MODEL = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand Down
4 changes: 4 additions & 0 deletions js/plugins/vertexai/src/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const gemini10Pro = modelRef({
media: false,
tools: true,
systemRole: true,
toolChoice: true,
},
},
configSchema: GeminiConfigSchema,
Expand All @@ -224,6 +225,7 @@ export const gemini15Pro = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand All @@ -239,6 +241,7 @@ export const gemini15Flash = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand All @@ -254,6 +257,7 @@ export const gemini20FlashExp = modelRef({
multiturn: true,
media: true,
tools: true,
toolChoice: true,
systemRole: true,
},
},
Expand Down

0 comments on commit 1baf2af

Please sign in to comment.