From 9aa1dc1aa2b0db730a9d83de6d686dcd98178ff2 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 13 Aug 2026 13:53:37 +0800 Subject: [PATCH] Update storage.js via upload script - 2026-08-13 13:53:21 --- storage.js | 11 ----------- 1 file changed, 11 deletions(-) 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瞎猜的情况,也能省一点点解析时间。