feat: AI 辅助修改行程(自然语言调整 + 单活动替代推荐)

- 新增 refinePlan / suggestAlternativeItems 到 ai.ts
- 新增 POST /api/blindbox/plan/refine(整体行程调整)
- 新增 POST /api/blindbox/plan/suggest-item(单活动 AI 替代 + POI 搜索)
- BlindboxPlan 底部新增自然语言输入框(方案 A)
- 编辑 modal 内新增 AI 推荐替代方案卡片(方案 B)
- export searchPois 供 suggest-item 路由复用
This commit is contained in:
2026-03-02 12:29:21 +08:00
parent 4e6a3e007c
commit 04a45c4894
6 changed files with 283 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ function selectIdeasForSlots(ideas: TaggedIdea[], availableHours: number): Tagge
// POI search (shared by both paths)
// ---------------------------------------------------------------------------
async function searchPois(
export async function searchPois(
query: string,
searchType: string,
anchorLat: number,