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

Closed
eltociear wants to merge 2540 commits from patch-1 into main
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 20c13c1a4a - Show all commits

View file

@ -694,6 +694,9 @@ export class DialogKeywords {
/**
* Returns the name of the user acquired by WhatsApp API.
*
* SAVE "file.xlsx", username, now
*
*/
public async userName({ pid }) {
let { min, user, params } = await DialogKeywords.getProcessInfo(pid);

View file

@ -60,7 +60,7 @@ export class ChatServices {
model: "gpt-3.5-turbo",
messages: [{role: "user", content: text}],
});
return chatCompletion.data.choices[0].message;
return chatCompletion.data.choices[0].message.content;
}
}