Skip to content

Commit 27d3ce0

Browse files
author
penuel.li
committed
feat: 1. Modify the latest API path for Gemini. 2. Add the gemini-2.5-pro model. 3. Remove the no longer supported gemini-1.0-pro
1 parent 48469bd commit 27d3ce0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/constant.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ export const Azure = {
190190

191191
export const Google = {
192192
ExampleEndpoint: "https://generativelanguage.googleapis.com/",
193-
ChatPath: (modelName: string) =>
194-
`v1beta/models/${modelName}:streamGenerateContent`,
193+
ChatPath: (modelName: string) => `v1beta/models/${modelName}:generateContent`,
195194
};
196195

197196
export const Baidu = {
@@ -502,7 +501,6 @@ const openaiModels = [
502501
];
503502

504503
const googleModels = [
505-
"gemini-1.0-pro", // Deprecated on 2/15/2025
506504
"gemini-1.5-pro-latest",
507505
"gemini-1.5-pro",
508506
"gemini-1.5-pro-002",
@@ -518,13 +516,15 @@ const googleModels = [
518516
"gemini-exp-1121",
519517
"gemini-exp-1206",
520518
"gemini-2.0-flash",
519+
"gemini-2.0-flash-lite",
521520
"gemini-2.0-flash-exp",
522521
"gemini-2.0-flash-lite-preview-02-05",
523522
"gemini-2.0-flash-thinking-exp",
524523
"gemini-2.0-flash-thinking-exp-1219",
525524
"gemini-2.0-flash-thinking-exp-01-21",
526525
"gemini-2.0-pro-exp",
527526
"gemini-2.0-pro-exp-02-05",
527+
"gemini-2.5-pro-exp-03-25",
528528
];
529529

530530
const anthropicModels = [

0 commit comments

Comments
 (0)