fix: 默认使用百度搜索引擎

This commit is contained in:
ikechan8370 2023-07-05 15:16:02 +08:00
parent 4ad4119c39
commit 66172feb3e

View file

@ -20,7 +20,7 @@ export class SerpIkechan8370Tool extends AbstractTool {
func = async function (opts) {
let { q, source } = opts
if (!source) {
source = 'google'
source = 'baidu'
}
let serpRes = await fetch(`https://serp.ikechan8370.com/${source}?q=${encodeURIComponent(q)}&lang=zh-CN&limit=10`, {
headers: {