fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 3fd3213740 - Show all commits

View file

@ -1179,8 +1179,8 @@ export class DialogKeywords {
const imageData = await (await fetch(url)).arrayBuffer();
const base64Image = Buffer.from(imageData).toString('base64');
const contentType = mime.getType(url);
const ext = mime.getExtension(contentType);
const contentType = mime.lookup(url);
const ext = mime.extension(contentType);
reply['attachments'] = [];
reply['attachments'].push({
name: filename,