fix: 增加一些提示和一个暂时的公共接口

This commit is contained in:
ikechan8370 2023-06-25 00:37:24 +08:00
parent 2bf92e2bbf
commit a70b25987e
3 changed files with 9 additions and 4 deletions

View file

@ -1964,8 +1964,6 @@ export class chatgpt extends plugin {
new KickOutTool(),
new WeatherTool(),
new SendPictureTool(),
new ImageCaptionTool(),
serpTool
]
let img = []
@ -1989,7 +1987,8 @@ export class chatgpt extends plugin {
if (e.img) {
img.push(...e.img)
}
if (img.length > 0) {
if (img.length > 0 && Config.extraUrl) {
tools.push(new ImageCaptionTool())
prompt += `\nthe url of the picture(s) above: ${img.join(', ')}`
} else {
tools.push(new SerpImageTool())