mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
feat: add a tool
This commit is contained in:
parent
116e4bef3c
commit
19f9c804bb
1 changed files with 4 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ import { SendPictureTool } from '../utils/tools/SendPictureTool.js'
|
|||
import { SerpImageTool } from '../utils/tools/SearchImageTool.js'
|
||||
import { ImageCaptionTool } from '../utils/tools/ImageCaptionTool.js'
|
||||
import {TTSTool} from "../utils/tools/TTSTool.js";
|
||||
import {ProcessPictureTool} from "../utils/tools/ProcessPictureTool.js";
|
||||
try {
|
||||
await import('emoji-strip')
|
||||
} catch (err) {
|
||||
|
|
@ -1973,7 +1974,8 @@ export class chatgpt extends plugin {
|
|||
new SerpImageTool(),
|
||||
new SerpIkechan8370Tool(),
|
||||
new SerpTool(),
|
||||
new TTSTool()
|
||||
new TTSTool(),
|
||||
new ProcessPictureTool()
|
||||
]
|
||||
// todo 3.0再重构tool的插拔和管理
|
||||
let tools = [
|
||||
|
|
@ -1987,6 +1989,7 @@ export class chatgpt extends plugin {
|
|||
new WeatherTool(),
|
||||
new SendPictureTool(),
|
||||
new TTSTool(),
|
||||
new ProcessPictureTool(),
|
||||
serpTool
|
||||
]
|
||||
let img = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue