Skip to content

Commit

Permalink
Add gemini-exp-1121
Browse files Browse the repository at this point in the history
resolves #2657
  • Loading branch information
timothycarambat committed Nov 21, 2024
1 parent 55fc9cd commit 246152c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function GeminiLLMOptions({ settings }) {
"gemini-1.5-flash-exp-0827",
"gemini-1.5-flash-8b-exp-0827",
"gemini-exp-1114",
"gemini-exp-1121",
"learnlm-1.5-pro-experimental",
].map((model) => {
return (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/useGetProvidersModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const PROVIDER_DEFAULT_MODELS = {
"gemini-1.5-flash-exp-0827",
"gemini-1.5-flash-8b-exp-0827",
"gemini-exp-1114",
"gemini-exp-1121",
"learnlm-1.5-pro-experimental",
],
anthropic: [
Expand Down
1 change: 1 addition & 0 deletions server/utils/AiProviders/gemini/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class GeminiLLM {
"gemini-1.5-flash-exp-0827",
"gemini-1.5-flash-8b-exp-0827",
"gemini-exp-1114",
"gemini-exp-1121",
"learnlm-1.5-pro-experimental",
];
return validModels.includes(modelName);
Expand Down
1 change: 1 addition & 0 deletions server/utils/AiProviders/modelMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const MODEL_MAP = {
"gemini-1.5-flash-exp-0827": 1_048_576,
"gemini-1.5-flash-8b-exp-0827": 1_048_576,
"gemini-exp-1114": 32_767,
"gemini-exp-1121": 32_767,
"learnlm-1.5-pro-experimental": 32_767,
},
groq: {
Expand Down
1 change: 1 addition & 0 deletions server/utils/helpers/updateENV.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ function validGeminiModel(input = "") {
"gemini-1.5-flash-exp-0827",
"gemini-1.5-flash-8b-exp-0827",
"gemini-exp-1114",
"gemini-exp-1121",
"learnlm-1.5-pro-experimental",
];
return validModels.includes(input)
Expand Down

0 comments on commit 246152c

Please sign in to comment.