mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: 移动 DailyNewsTool 的描述位置
This commit is contained in:
parent
aa5dfa0d3b
commit
079304eb51
1 changed files with 8 additions and 8 deletions
|
|
@ -3,6 +3,7 @@ import fetch from 'node-fetch'
|
|||
|
||||
export class DailyNewsTool extends AbstractTool {
|
||||
name = 'dailyNews'
|
||||
|
||||
parameters = {
|
||||
properties: {
|
||||
action: {
|
||||
|
|
@ -14,9 +15,7 @@ export class DailyNewsTool extends AbstractTool {
|
|||
required: ['action']
|
||||
}
|
||||
|
||||
description = 'Useful when you want to know today\'s news headlines and hot topics. Use keywords like "今日新闻", "每日新闻", "60秒新闻" to get news.'
|
||||
|
||||
func = async function(opts) {
|
||||
func = async function (opts) {
|
||||
try {
|
||||
// 添加请求头和超时设置
|
||||
const controller = new AbortController()
|
||||
|
|
@ -91,4 +90,5 @@ export class DailyNewsTool extends AbstractTool {
|
|||
}
|
||||
return result
|
||||
}
|
||||
description = 'Useful when you want to know today\'s news headlines and hot topics. Use keywords like "今日新闻", "每日新闻", "60秒新闻" to get news.'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue