mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 修改默认搜索引擎为必应
This commit is contained in:
parent
b1570d6126
commit
51f786bd44
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export class SerpIkechan8370Tool extends AbstractTool {
|
||||||
func = async function (opts) {
|
func = async function (opts) {
|
||||||
let { q, source } = opts
|
let { q, source } = opts
|
||||||
if (!source) {
|
if (!source) {
|
||||||
source = 'baidu'
|
source = 'bing'
|
||||||
}
|
}
|
||||||
let serpRes = await fetch(`https://serp.ikechan8370.com/${source}?q=${encodeURIComponent(q)}&lang=zh-CN&limit=5`, {
|
let serpRes = await fetch(`https://serp.ikechan8370.com/${source}?q=${encodeURIComponent(q)}&lang=zh-CN&limit=5`, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue