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
4ad4119c39
commit
66172feb3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue