Skip to content

Commit

Permalink
✨feature(1.2.0): 支持gemini-1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vacuityv committed Apr 19, 2024
1 parent c29b8e3 commit 0d2107f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -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实现翻译功能",
Expand Down Expand Up @@ -38,6 +38,10 @@
"title": "gemini-pro",
"value": "gemini-pro"
},
{
"title": "gemini-1.5-pro",
"value": "gemini-1.5-pro"
},
{
"title": "claude2",
"value": "claude2"
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0d2107f

Please sign in to comment.