From 0d2107f194cf7b1104ba1d67702854189e394f02 Mon Sep 17 00:00:00 2001 From: vacuity Date: Fri, 19 Apr 2024 11:48:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feature(1.2.0):=20=E6=94=AF=E6=8C=81ge?= =?UTF-8?q?mini-1.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- info.json | 6 +++++- main.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/info.json b/info.json index 202c927..4e5512e 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "identifier": "me.vacuity.chat.gptranslate", - "version": "1.1.0", + "version": "1.2.0", "category": "translate", "name": "GPTranslate", "summary": "调用chatgpt/gemini/claude实现翻译功能", @@ -38,6 +38,10 @@ "title": "gemini-pro", "value": "gemini-pro" }, + { + "title": "gemini-1.5-pro", + "value": "gemini-1.5-pro" + }, { "title": "claude2", "value": "claude2" diff --git a/main.js b/main.js index d302026..0f0e7ce 100644 --- a/main.js +++ b/main.js @@ -163,8 +163,8 @@ function initWebsocket() { websocket.ping() count += 1; $log.info(`count=${count}`) - // 空闲 10*60s 后关闭 - if (count > 60) { + // 空闲 1h 后关闭 + if (count > 60 * 6) { $timer.invalidate(timerId); if (websocket != null) { websocket.close();