Update storage.js via upload script - 2026-08-13 13:53:21

This commit is contained in:
mike 2026-08-13 13:53:37 +08:00
parent f3c8aecd25
commit 9aa1dc1aa2
1 changed files with 0 additions and 11 deletions

View File

@ -113,17 +113,6 @@ export async function testAiConfig() {
return data;
}
export async function generateAiDraft(customerId, channel) {
const res = await fetch('/api/ai/draft', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ customerId, channel }),
});
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new Error(data.error || 'generate failed');
return data;
}
// 批量上传PDF/图片形式的产品目录后端OCR识别+DeepSeek解析后返回结构化的产品数组。
// hints可选{ category, brand, type },提前告诉后端这批产品大概是什么类目/品牌/品类,
// 减少AI瞎猜的情况也能省一点点解析时间。