Skip to content

Commit

Permalink
Fixed apis['ToYaml.com'] mis-structured
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 15, 2025
1 parent 206843e commit b6b256b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
11 changes: 6 additions & 5 deletions amazongpt/greasemonkey/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.15.9
// @version 2025.1.15.10
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -432,11 +432,12 @@
method: 'POST', streamable: true
},
'ToYaml.com': {
endpoint: 'https://toyaml.com/streams', expectedOrigin: { url: 'https://toyaml.com/chat.html',
endpoint: 'https://toyaml.com/streams',
expectedOrigin: { url: 'https://toyaml.com/chat.html', headers: { 'x-requested-with': 'XMLHttpRequest' }},
method: 'GET', streamable: true, watermark: '【本答案来自 toyaml.com】',
failFlags: [
'请等待网友当前提问回答完毕再试'], // 'Please wait until the current question is answered before trying again'
headers: { 'x-requested-with': 'XMLHttpRequest' }}, method: 'GET', streamable: true,
watermark: '【本答案来自 toyaml.com】'
'请等待网友当前提问回答完毕再试' // 'Please wait until the current question is answered before trying again'
]
}
}

Expand Down
11 changes: 6 additions & 5 deletions bravegpt/greasemonkey/bravegpt.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-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.15.10
// @version 2025.1.15.11
// @license MIT
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
Expand Down Expand Up @@ -606,11 +606,12 @@
method: 'POST', streamable: true
},
'ToYaml.com': {
endpoint: 'https://toyaml.com/streams', expectedOrigin: { url: 'https://toyaml.com/chat.html',
endpoint: 'https://toyaml.com/streams',
expectedOrigin: { url: 'https://toyaml.com/chat.html', headers: { 'x-requested-with': 'XMLHttpRequest' }},
method: 'GET', streamable: true, watermark: '【本答案来自 toyaml.com】',
failFlags: [
'请等待网友当前提问回答完毕再试'], // 'Please wait until the current question is answered before trying again'
headers: { 'x-requested-with': 'XMLHttpRequest' }}, method: 'GET', streamable: true,
watermark: '【本答案来自 toyaml.com】'
'请等待网友当前提问回答完毕再试' // 'Please wait until the current question is answered before trying again'
]
}
}

Expand Down
11 changes: 6 additions & 5 deletions duckduckgpt/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 2025.1.15.12
// @version 2025.1.15.13
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -614,11 +614,12 @@
method: 'POST', streamable: true
},
'ToYaml.com': {
endpoint: 'https://toyaml.com/streams', expectedOrigin: { url: 'https://toyaml.com/chat.html',
endpoint: 'https://toyaml.com/streams',
expectedOrigin: { url: 'https://toyaml.com/chat.html', headers: { 'x-requested-with': 'XMLHttpRequest' }},
method: 'GET', streamable: true, watermark: '【本答案来自 toyaml.com】',
failFlags: [
'请等待网友当前提问回答完毕再试'], // 'Please wait until the current question is answered before trying again'
headers: { 'x-requested-with': 'XMLHttpRequest' }}, method: 'GET', streamable: true,
watermark: '【本答案来自 toyaml.com】'
'请等待网友当前提问回答完毕再试' // 'Please wait until the current question is answered before trying again'
]
}
}

Expand Down
12 changes: 7 additions & 5 deletions googlegpt/greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.15.9
// @version 2025.1.15.10
// @license MIT
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
Expand Down Expand Up @@ -796,10 +796,12 @@
method: 'POST', streamable: true
},
'ToYaml.com': {
endpoint: 'https://toyaml.com/streams', expectedOrigin: { url: 'https://toyaml.com/chat.html',
failFlags: ['请等待网友当前提问回答完毕再试'], // Please wait until the current question is answered before trying again
headers: { 'x-requested-with': 'XMLHttpRequest' }}, method: 'GET', streamable: true,
watermark: '【本答案来自 toyaml.com】'
endpoint: 'https://toyaml.com/streams',
expectedOrigin: { url: 'https://toyaml.com/chat.html', headers: { 'x-requested-with': 'XMLHttpRequest' }},
method: 'GET', streamable: true, watermark: '【本答案来自 toyaml.com】',
failFlags: [
'请等待网友当前提问回答完毕再试' // 'Please wait until the current question is answered before trying again'
]
}
}

Expand Down

0 comments on commit b6b256b

Please sign in to comment.