feat: Add proper thread handling in content generation

- Detect threads by template name and skip platform truncation
- Parse thread content into individual posts with numbering
- Add thread_posts array to API response with post details
- Evaluate quality on first post (hook) for threads
- Add is_thread and thread_posts fields to GenerateV2Response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 21:23:18 +00:00
parent e32885afc5
commit 9e857961f9
4 changed files with 143 additions and 13 deletions

View File

@@ -49,13 +49,13 @@ template: |
- Indica que es un hilo: "🧵 Hilo:"
- Anticipa lo que van a aprender
POSTS 2 a {num_posts-1} (CONTENIDO):
POSTS INTERMEDIOS (CONTENIDO):
- Cada post = 1 concepto/punto
- Empieza cada post con conexión al anterior
- Incluye ejemplo práctico cuando sea posible
- Usa formato escaneable (bullets, numeración)
POST {num_posts} (CIERRE):
ÚLTIMO POST (CIERRE):
- Resume los puntos clave
- Da un paso accionable
- CTA de engagement (guardar, compartir, seguir)