fix: use search/people API (no identity concept)

This commit is contained in:
2026-07-25 20:38:30 +08:00
parent 9386a8e8ef
commit 1a0b3f2c1f

View File

@@ -722,15 +722,15 @@ async function sendMessage() {
messages.value[msgIdx].loading = false
if (res?.chips) messages.value[msgIdx].chips = res.chips
} else if (mode.value === 'people') {
const raw: any = await apiCall('search_identities', { query: q, limit: 50 })
const raw: any = await apiCall('search_people', { query: q, limit: 50 })
if (searchSeq !== seq) return
const results = (Array.isArray(raw) ? raw : []).filter((p: any) => p.file_uuid).map((p: any) => ({
file_uuid: p.file_uuid,
file_name: p.name,
summary: p.source ? `People · ${p.source}` : 'People',
const peopleList = raw?.people || []
const results = peopleList.map((p: any) => ({
file_name: p.name || 'Unknown',
summary: `People · ${p.appearance_count || 0} appearances`,
similarity: 1.0,
start_frame: p.startFrame || p.start_frame,
end_frame: p.endFrame || p.end_frame,
start_frame: p.first_appearance_time,
end_frame: p.last_appearance_time,
search_query: q,
}))
messages.value[msgIdx].results = results