Skip to content

Commit

Permalink
feat: add a tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jun 25, 2023
1 parent 116e4be commit 19f9c80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = [
Expand All @@ -1987,6 +1989,7 @@ export class chatgpt extends plugin {
new WeatherTool(),
new SendPictureTool(),
new TTSTool(),
new ProcessPictureTool(),
serpTool
]
let img = []
Expand Down

0 comments on commit 19f9c80

Please sign in to comment.