feat: 更新AI教练服务,支持处理多个图片URL,优化饮食分析逻辑。调整相关DTO以支持数组格式的图片URL,并修改默认视觉模型为'qwen-vl-max'。

This commit is contained in:
richarjiang
2025-08-18 15:07:47 +08:00
parent eb71f845e5
commit 3d36ee90f0
3 changed files with 12 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ export class AiCoachController {
userId,
conversationId,
userContent,
imageUrl: body.imageUrl,
imageUrls: body.imageUrls,
});
let text = '';
for await (const chunk of readable) {
@@ -62,7 +62,7 @@ export class AiCoachController {
userId,
conversationId,
userContent,
imageUrl: body.imageUrl,
imageUrls: body.imageUrls,
});
readable.on('data', (chunk) => {