Skip to content

Commit 8a901cc

Browse files
committed
Bumped app.commitHashes.aiweb, extended timeout +5s for slow AIchatOS (closes adamlui/ai-web-extensions#520) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 6828a5d commit 8a901cc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2026.7.27.10
151+
// @version 2026.7.27.11
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@e73859f/assets/images/icons/app/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@e73859f/assets/images/icons/app/icon64.png
@@ -265,7 +265,7 @@
265265
version: GM_info.script.version, chatgptjsVer: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1],
266266
commitHashes: {
267267
app: '8cd32a6', // for cached <app|messages>.json
268-
aiweb: 'bf3d40d' // for cached ai-chat-apis.json5 + <code-languages|katex-delimiters|sogou-tts-lang-codes>.json
268+
aiweb: '9b38088' // for cached ai-chat-apis.json5 + <code-languages|katex-delimiters|sogou-tts-lang-codes>.json
269269
},
270270
config: {}
271271
}
@@ -1324,7 +1324,10 @@
13241324
&& get.reply.api == iniAPI // not already trying diff API from err
13251325
&& get.reply.triedAPIs.length != Object.keys(app.apis).length -1 // untried APIs remain
13261326
) api.tryNew({ caller: get.reply, reason: 'timeout' })
1327-
}, ( app.config.streamingDisabled ? 10 : 7 *( app.config.preferredAPI ? 2 : 1 )) *1000)
1327+
}, (
1328+
( app.config.streamingDisabled ? 10 : 7 *( app.config.preferredAPI ? 2 : 1 ))
1329+
+( iniAPI == 'AIchatOS' ? 5 : 0 ) // extend +5s for slow AIchatOS
1330+
)*1000)
13281331
}
13291332

13301333
// Augment query

0 commit comments

Comments
 (0)