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.
三个端点
| Method | Path | 媒体 |
|---|
| POST | /publish/ | Image |
| POST | /publish/video | Video |
| POST | /publish/audio | Audio |
Bearer JWT
请求 Body
Image:{ imageId: string }
Video:{ video: Video }(thread_version.videos 中的 Video 对象)
Audio:{ audio: Audio }(thread_version.audios 中的 Audio 对象)
ResponseFeedSchema // 同 GET /feed/:id
发布流程(三路差异对照)
| 步骤 | Image | Video | Audio |
|---|
| 1. 复制文件 | copyImageFromMessageToFeed() | copyVideoFromMessageToFeed() | 同上(音频+cover) |
| 2. CSAM 审核 | 图片 + prompt 文本 | 缩略图 + prompt 文本 | cover + lyrics + prompt(三路并发) |
| 3. Embedding | 原图 | 缩略图 | cover(无 cover 时跳过) |
| 4. LanceDB 去重 | cosine 0.25 阈值 | 同 | 同 |
| 5. INSERT feed | media_type: null | media_type: "video" | media_type: "audio" |
| 6. 保存 embedding | ✅ | 缩略图向量 | cover 向量 |
| 7. PostHog | feed_published + feed_image_id | + feed_video_id | + feed_audio_id |
Flag(可见性)
三路都共享 flag 逻辑:
const flag: string[] = [];
if (profile.flag?.includes("ban")) flag.push("ban");
if (isSimilar) flag.push("duplicate");
if (!moderationPassed) flag.push("nsfw");
// feed 可见 iff flag 为空
src/hono/publish/index.ts:398 (image)
src/hono/publish/index.ts:421 (video)
src/hono/publish/index.ts:447 (audio)