diff --git a/storage.js b/storage.js index a3c4dca..c940406 100644 --- a/storage.js +++ b/storage.js @@ -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瞎猜的情况,也能省一点点解析时间。