参考项目:E:\ltc-pobingfeng
关键文件:
AI模型导入与使用文档.mdsrc/modules/owner/nav/consultation/menchuang-agent/image-analysis.service.tssrc/modules/owner/nav/consultation/menchuang-agent/window-recognition.service.ts参考项目使用 fmode-ng/core 的 completionJSON 做结构化 JSON 输出:
import { completionJSON } from 'fmode-ng/core';
const result = await completionJSON(
systemPrompt,
outputFormat,
onProgress,
3,
{
model: 'fmode-1.6-cn',
temperature: 0.1,
vision: true,
images: [imageUrl]
}
);
P0 阶段在 Claude Code 技能里先不引入前端上传链路,流程拆为两段:
后续如果要接入前端,可复用参考项目的上传和图片 URL 识别方式:
completionJSON 加 vision: true 和 images: [imageUrl] 调模型。