Skip to content

Commit

Permalink
Added skip JSON resp in dataProcess.text() (adamlui/ai-web-extensio…
Browse files Browse the repository at this point in the history
…ns#81) ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Oct 3, 2024
1 parent af8590a commit cd75f1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.10.3
// @version 2024.10.3.1
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -3186,9 +3186,9 @@
function handleProcessCompletion() {
if (caller.status != 'done') {
const failMatch = failFlagsAndURLs.exec(respText)
if (failMatch) {
if (failMatch || respText.startsWith('{')) {
log.debug('Response text', respText)
log.error('Fail flag detected', `'${failMatch[0]}'`)
if (failMatch) log.error('Fail flag detected', `'${failMatch[0]}'`)
api.tryNew(caller)
} else {
log.debug('Response text', respText)
Expand Down

0 comments on commit cd75f1e

Please sign in to comment.