Update storage.js via upload script - 2026-08-13 13:53:21
This commit is contained in:
parent
f3c8aecd25
commit
9aa1dc1aa2
11
storage.js
11
storage.js
|
|
@ -113,17 +113,6 @@ export async function testAiConfig() {
|
||||||
return data;
|
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解析后返回结构化的产品数组。
|
// 批量上传PDF/图片形式的产品目录,后端OCR识别+DeepSeek解析后返回结构化的产品数组。
|
||||||
// hints可选:{ category, brand, type },提前告诉后端这批产品大概是什么类目/品牌/品类,
|
// hints可选:{ category, brand, type },提前告诉后端这批产品大概是什么类目/品牌/品类,
|
||||||
// 减少AI瞎猜的情况,也能省一点点解析时间。
|
// 减少AI瞎猜的情况,也能省一点点解析时间。
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue