Skip to content

Commit 084b704

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/bravegpt]
1 parent 12394f7 commit 084b704

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

chatgpt/bravegpt/bravegpt.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-Brave Search
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2026.7.27.8
151+
// @version 2026.7.27.9
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/assets/images/icons/app/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/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: 'd8ae1f8', // 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
}
271271
app.urls = { resourceHost: `https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@${app.commitHashes.app}` }
@@ -1316,7 +1316,10 @@
13161316
&& get.reply.api == iniAPI // not already trying diff API from err
13171317
&& get.reply.triedAPIs.length != Object.keys(app.apis).length -1 // untried APIs remain
13181318
) api.tryNew({ caller: get.reply, reason: 'timeout' })
1319-
}, ( app.config.streamingDisabled ? 10 : 7 *( app.config.preferredAPI ? 2 : 1 )) *1000)
1319+
}, (
1320+
( app.config.streamingDisabled ? 10 : 7 *( app.config.preferredAPI ? 2 : 1 ))
1321+
+( iniAPI == 'AIchatOS' ? 5 : 0 ) // extend +5s for slow AIchatOS
1322+
)*1000)
13201323
}
13211324

13221325
// Augment query

0 commit comments

Comments
 (0)