From cc7e7fb3ac493765d3887b12792120391e77f45f Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Thu, 23 May 2024 09:42:30 -0700 Subject: [PATCH] [FEAT] Add support for gemini-1.5-flash-latest model (#1502) * add support for gemini-1.5-flash-latest * update comment in gemini LLM provider --- .../LLMSelection/GeminiLLMOptions/index.jsx | 6 +++++- frontend/src/hooks/useGetProvidersModels.js | 2 +- server/utils/AiProviders/gemini/index.js | 14 +++++++++++--- server/utils/helpers/updateENV.js | 6 +++++- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx b/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx index d2846704..87e05882 100644 --- a/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx +++ b/frontend/src/components/LLMSelection/GeminiLLMOptions/index.jsx @@ -30,7 +30,11 @@ export default function GeminiLLMOptions({ settings }) { required={true} className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > - {["gemini-pro", "gemini-1.5-pro-latest"].map((model) => { + {[ + "gemini-pro", + "gemini-1.5-pro-latest", + "gemini-1.5-flash-latest", + ].map((model) => { return (