feat: 换一批注入用户画像,生成更贴合用户自身的示例问题
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled

This commit is contained in:
selfrelease
2026-08-31 17:11:41 +08:00
parent a7ef530841
commit 9e8291e8bd
3 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -235,9 +235,9 @@ export const api = {
request<{ topics: Array<{ title: string; desc: string; samples: string[] }> }>('/topics', {
method: 'POST', body: JSON.stringify({ scene, existing }),
}),
generateSamples: (scene: Scene = 'legal', topic?: string, existing?: string[]) =>
generateSamples: (scene: Scene = 'legal', topic?: string, existing?: string[], phone?: string) =>
request<{ samples: string[] }>('/samples', {
method: 'POST', body: JSON.stringify({ scene, topic, existing }),
method: 'POST', body: JSON.stringify({ scene, topic, existing, phone }),
}),
// ===== 每日热点问题 =====