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
| 字段 | 类型 | 必填 |
|---|---|---|
message | ResponseMessageSchema | 是(首条消息,v5 parts[]) |
响应
副作用
- INSERT
threads - INSERT
messages(首消息) - 异步调用 Mistral API 生成标题并 UPDATE
threads.title - 非阻塞 CSAM:
parseUserImageIds(message.parts)→moderateImageUrl(id),命中则更新threads.flag = [..., "nsfw"] - PostHog
thread_created事件
Caveat
- 标题生成和 CSAM 都是 fire-and-forget;响应立即返回
- 用户在创建后短时间内无法通过
threads.flag看到 nsfw 状态,需稍后拉取
源
src/hono/thread/index.ts:42, 159-171