fix: image caption qq error

This commit is contained in:
ikechan8370 2023-06-26 15:48:17 +08:00
parent c6ce17ff98
commit 8acb3f48e7

View file

@ -26,7 +26,7 @@ export class ImageCaptionTool extends AbstractTool {
func = async function (opts) {
let { imgUrl, qq, question } = opts
if (qq) {
if (!imgUrl && qq) {
imgUrl = `https://q1.qlogo.cn/g?b=qq&s=160&nk=${qq}`
}
if (!imgUrl) {