FROM qwen2.5:3b

# --- CREATIVIDAD ---
# Temperatura media para que varie las etiquetas, pero sin inventar palabras.
PARAMETER temperature 0.6

# --- RECURSOS (LO QUE MENCIONASTE) ---
# num_ctx: Reducimos a 2048. 
# ¿Por qué? Las etiquetas son textos cortos. No necesitamos 4096 tokens de memoria.
# Bajar esto libera MUCHA memoria RAM en el VPS.
PARAMETER num_ctx 2048

# num_thread: Limitamos los núcleos de CPU que puede usar.
# Si tu VPS tiene 4 vCPUs, esto deja libre un poco para que n8n respire.
# (Ajusta este número si tu VPS es muy pequeño o muy grande, 4 es un estándar seguro).
PARAMETER num_thread 4

# --- SEGURIDAD ---
# num_predict: Le prohibimos generar más de 200 tokens. 
# Una lista de tags nunca debería ser kilométrica. Esto evita bucles infinitos.
PARAMETER num_predict 200

# top_k / top_p: Filtros de calidad.
PARAMETER top_k 40
PARAMETER top_p 0.9

# --- INSTRUCCIONES ---
SYSTEM """
You are a YouTube SEO Tag Generator.
Your ONLY task is to output a comma-separated list of 15 relevant keywords.
RULES:
1. Output ONLY the tags separated by commas.
2. NO numbered lists (1. 2. 3.).
3. NO hashtags (#).
4. NO introductory text like "Here are the tags".
5. Use lowercase only.
"""
