diff --git a/package-lock.json b/package-lock.json index 3c432dfe4d..e0abce574c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@kangc/v-md-editor": "^2.3.16", "@langchain/anthropic": "^0.1.9", "@langchain/cohere": "^0.0.7", - "@langchain/google-genai": "^0.0.7", + "@langchain/google-genai": "^0.0.12", "@langchain/groq": "^0.0.6", "@langchain/openai": "^0.0.12", "@mdi/font": "^7.4.47", @@ -2621,8 +2621,9 @@ } }, "node_modules/@google/generative-ai": { - "version": "0.1.3", - "license": "Apache-2.0", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.7.1.tgz", + "integrity": "sha512-WTjMLLYL/xfA5BW6xAycRPiAX7FNHKAxrid/ayqC1QMam0KAK0NbMeS9Lubw80gVg5xFMLE+H7pw4wdNzTOlxw==", "engines": { "node": ">=18.0.0" } @@ -3476,10 +3477,11 @@ } }, "node_modules/@langchain/google-genai": { - "version": "0.0.7", - "license": "MIT", + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.0.12.tgz", + "integrity": "sha512-NDARJ+ZxjlkTHDvNroiG6V+3gW0u0OlMvbDEYAAXR6wFGIV09//ekolr+bA290ZCN77Ei+BEOsd6Ax1wBk3Z4w==", "dependencies": { - "@google/generative-ai": "^0.1.0", + "@google/generative-ai": "^0.7.0", "@langchain/core": "~0.1.5" }, "engines": { diff --git a/package.json b/package.json index 327a3de9d6..8b35b67d7b 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@kangc/v-md-editor": "^2.3.16", "@langchain/anthropic": "^0.1.9", "@langchain/cohere": "^0.0.7", - "@langchain/google-genai": "^0.0.7", + "@langchain/google-genai": "^0.0.12", "@langchain/groq": "^0.0.6", "@langchain/openai": "^0.0.12", "@mdi/font": "^7.4.47", diff --git a/public/bots/gemini-1.0-logo.png b/public/bots/gemini-1.0-logo.png new file mode 100644 index 0000000000..273c4a125f Binary files /dev/null and b/public/bots/gemini-1.0-logo.png differ diff --git a/public/bots/gemini-1.5-logo.png b/public/bots/gemini-1.5-logo.png new file mode 100644 index 0000000000..01abddbd14 Binary files /dev/null and b/public/bots/gemini-1.5-logo.png differ diff --git a/public/bots/gemini-logo.png b/public/bots/gemini-logo.png deleted file mode 100644 index 73e6bd53b2..0000000000 Binary files a/public/bots/gemini-logo.png and /dev/null differ diff --git a/src/bots/google/Gemini15ProAPIBot.js b/src/bots/google/Gemini15ProAPIBot.js new file mode 100644 index 0000000000..149d2994e1 --- /dev/null +++ b/src/bots/google/Gemini15ProAPIBot.js @@ -0,0 +1,11 @@ +import GeminiAPIBot from "./GeminiAPIBot"; + +export default class Gemini15ProAPIBot extends GeminiAPIBot { + static _className = "Gemini15ProAPIBot"; + static _logoFilename = "gemini-1.5-logo.png"; // Place it in public/bots/ + static _model = "gemini-1.5-pro-latest"; + + constructor() { + super(); + } +} diff --git a/src/bots/google/GeminiAPIBot.js b/src/bots/google/GeminiAPIBot.js index 2e3ef80955..d7a4db667a 100644 --- a/src/bots/google/GeminiAPIBot.js +++ b/src/bots/google/GeminiAPIBot.js @@ -5,7 +5,7 @@ import { ChatGoogleGenerativeAI } from "@langchain/google-genai"; export default class GeminiAPIBot extends LangChainBot { static _brandId = "geminiApi"; static _className = "GeminiAPIBot"; - static _logoFilename = "gemini-logo.png"; // Place it in public/bots/ + static _logoFilename = "gemini-1.0-logo.png"; // Place it in public/bots/ static _model = "gemini-pro"; constructor() { diff --git a/src/bots/index.js b/src/bots/index.js index b14a8226e0..359f9fdc9e 100644 --- a/src/bots/index.js +++ b/src/bots/index.js @@ -1,5 +1,6 @@ // Bots import GeminiAPIBot from "@/bots/google/GeminiAPIBot"; +import Gemini15ProAPIBot from "@/bots/google/Gemini15ProAPIBot"; import ChatGPT35Bot from "@/bots/openai/ChatGPT35Bot"; import ChatGPT4Bot from "@/bots/openai/ChatGPT4Bot"; import CohereAPICommandBot from "@/bots/cohere/CohereAPICommandBot"; @@ -122,6 +123,7 @@ const all = [ BardBot.getInstance(), GeminiAdvBot.getInstance(), GeminiAPIBot.getInstance(), + Gemini15ProAPIBot.getInstance(), Gemma2bItBot.getInstance(), Gemma7bItBot.getInstance(), AzureOpenAIAPIBot.getInstance(), @@ -284,6 +286,7 @@ export const botTags = { ], api: [ bots.getBotByClassName("GeminiAPIBot"), + bots.getBotByClassName("Gemini15ProAPIBot"), bots.getBotByClassName("AzureOpenAIAPIBot"), bots.getBotByClassName("OpenAIAPI35Bot"), bots.getBotByClassName("OpenAIAPI3516KBot"), diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 675fe2c2fc..6c41678f63 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -49,6 +49,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "Ein topK von 1 bedeutet, dass das ausgewählte Token das wahrscheinlichste unter allen Token im Vokabular des Modells ist (auch gieriges Decodieren genannt).", "topP": "topP", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 149534b7e2..c2e43311d5 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -163,6 +163,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "A topK of 1 means the selected token is the most probable among all the tokens in the model's vocabulary (also called greedy decoding)", "topP": "topP", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 71363df181..0c16175a47 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -106,6 +106,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "Un topK de 1 significa que el token seleccionado es el más probable entre todos los tokens en el vocabulario del modelo (también llamado decodificación voraz).", "topP": "topP", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index ae3d5558e0..1ffadb52c5 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -68,6 +68,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "Un topK de 1 signifie que le jeton sélectionné est le plus probable parmi tous les jetons dans le vocabulaire du modèle (également appelé décodage gourmand).", "topP": "topP", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 27acb0f435..020f33580b 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -75,6 +75,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "Un topK di 1 significa che il token selezionato è il più probabile tra tutti i token nel vocabolario del modello (chiamato anche decodifica avida).", "topP": "topP", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 42d81e40ff..2487bf4dc5 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -101,6 +101,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "topKの1は、モデルの語彙の中で選択されたトークンが最も確からしいことを意味します(貪欲デコードとも呼ばれます)", "topP": "topP", diff --git a/src/i18n/locales/ko.json b/src/i18n/locales/ko.json index 68a6e68d28..7394c3fe88 100644 --- a/src/i18n/locales/ko.json +++ b/src/i18n/locales/ko.json @@ -151,6 +151,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "topK가 1이라는 것은 선택된 토큰이 모델의 어휘 중에서 가장 가능성이 높은 것을 의미합니다 (탐욕스러운 디코딩이라고도 함).", "topP": "topP", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 7422540412..0852c252c8 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -68,6 +68,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "topK, равный 1, означает, что выбранный токен является наиболее вероятным среди всех токенов в словаре модели (это также называется жадным декодированием).", "topP": "topP", diff --git a/src/i18n/locales/vi.json b/src/i18n/locales/vi.json index 8ffa290f4e..29fc25db26 100644 --- a/src/i18n/locales/vi.json +++ b/src/i18n/locales/vi.json @@ -147,6 +147,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "Một topK của 1 có nghĩa là token được chọn là có khả năng cao nhất trong tất cả các token trong từ vựng của mô hình (còn được gọi là giải mã tham lam)", "topP": "topP", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 55e5d174cf..fb3c87230b 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -163,6 +163,7 @@ "geminiApi": { "name": "Gemini API", "gemini-pro": "Gemini-Pro", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "topK": "topK", "topKPrompt": "topK为1意味着选定的标记在模型词汇中所有标记里是最有可能的(也称为贪婪解码)", "topP": "topP", diff --git a/src/i18n/locales/zhtw.json b/src/i18n/locales/zhtw.json index aa66f8fed6..70cee23e1f 100644 --- a/src/i18n/locales/zhtw.json +++ b/src/i18n/locales/zhtw.json @@ -120,6 +120,7 @@ "bard": { "name": "Gemini", "gemini-pro": "Gemini", + "gemini-15-pro-latest": "Gemini 1.5 Pro", "gemini-ultra": "Gemini 進階版" }, "claudeApi":{