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.

路径

POST /thread/

认证

Bearer JWT

请求 Body

字段类型必填
messageResponseMessageSchema是(首条消息,v5 parts[]

响应

{
  id: string,
  resourceId: string,   // userId
  title: string,        // 由 Mistral 自动生成
  thumbImageUrl: string | null
}

副作用

  1. INSERT threads
  2. INSERT messages(首消息)
  3. 异步调用 Mistral API 生成标题并 UPDATE threads.title
  4. 非阻塞 CSAMparseUserImageIds(message.parts)moderateImageUrl(id),命中则更新 threads.flag = [..., "nsfw"]
  5. PostHog thread_created 事件

Caveat

  • 标题生成和 CSAM 都是 fire-and-forget;响应立即返回
  • 用户在创建后短时间内无法通过 threads.flag 看到 nsfw 状态,需稍后拉取

src/hono/thread/index.ts:42, 159-171

相关