mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 增加一些提示和一个暂时的公共接口
This commit is contained in:
parent
2bf92e2bbf
commit
a70b25987e
3 changed files with 9 additions and 4 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue