mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: bug fix
This commit is contained in:
parent
699d2c8d27
commit
d254163fa7
1 changed files with 1 additions and 1 deletions
|
|
@ -2323,7 +2323,7 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
}
|
||||
let img = await getImg(e)
|
||||
if (img.length > 0 && Config.extraUrl) {
|
||||
if (img?.length > 0 && Config.extraUrl) {
|
||||
tools.push(new ImageCaptionTool())
|
||||
tools.push(new ProcessPictureTool())
|
||||
prompt += `\nthe url of the picture(s) above: ${img.join(', ')}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue