mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 智障吧我是
This commit is contained in:
parent
83c481a4bc
commit
870eba51d2
1 changed files with 2 additions and 2 deletions
|
|
@ -18,12 +18,12 @@ export class SerpImageTool extends AbstractTool {
|
||||||
description: 'search source, bing or yandex'
|
description: 'search source, bing or yandex'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['q']
|
required: ['q', 'source']
|
||||||
}
|
}
|
||||||
|
|
||||||
func = async function (opts) {
|
func = async function (opts) {
|
||||||
let { q, limit = 2, source = 'bing' } = opts
|
let { q, limit = 2, source = 'bing' } = opts
|
||||||
let serpRes = await fetch(`https://serp.ikechan8370.com/${source}/bing?q=${encodeURIComponent(q)}&limit=${limit}`, {
|
let serpRes = await fetch(`https://serp.ikechan8370.com/image/${source}?q=${encodeURIComponent(q)}&limit=${limit}`, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-From-Library': 'ikechan8370'
|
'X-From-Library': 'ikechan8370'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue