Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tech.illasoft.com/llms.txt

Use this file to discover all available pages before exploring further.

路径

DELETE /thread/:threadId

认证

Bearer JWT

响应

{ "message": "ok" }

副作用(同步)

  1. DELETE messages WHERE thread_id = ?
  2. DELETE thread_version WHERE thread_id = ?
  3. DELETE threads WHERE id = ?

副作用(异步 / fire-and-forget)

  1. 从被删除 thread_version 中 extractVideoTaskIds / extractMusicTaskIds
  2. purgeVideoTasks / purgeMusicTasksvideo|music/task.cancelled Inngest event
  3. Redis SET cancel:{taskId} 1 EX 3600 每个 taskId
  4. deleteStorageFiles(userId, [...imageIds, videoIds, audioIds, coverIds, thumbIds])
响应立即返回,清理在后台执行。

src/hono/thread/index.ts:231

相关