mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +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'
|
||||
}
|
||||
},
|
||||
required: ['q']
|
||||
required: ['q', 'source']
|
||||
}
|
||||
|
||||
func = async function (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: {
|
||||
'X-From-Library': 'ikechan8370'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue