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();