From 8c477e090d3c7b0cd772380fe6388b9c18acad2b Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Thu, 27 Aug 2026 11:03:23 +0200 Subject: [PATCH] config(thumbnail): default the title model to gemini-3.7-flash Same transcript, three models: 3.5-flash 34 s, 3.7-flash 14 s, 3.1-pro 105 s. 3.7 gave the most specific thumbnail hooks (the ones that quote a figure from the video rather than a stock phrase) at the lowest latency. --- .env.example | 2 +- CLAUDE.md | 2 +- thumbnail.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 0ac4aa3..a41727c 100644 --- a/.env.example +++ b/.env.example @@ -52,5 +52,5 @@ AWS_S3_PUBLIC_BUCKET=your-public-bucket-name # Thumbnail Studio: creative text model (titles, concepts) and the image model. # Not tied to GEMINI_MODEL on purpose: flash-lite is fine for closed choices, # visibly worse at titles. -GEMINI_MODEL_THUMBNAIL=gemini-3.5-flash +GEMINI_MODEL_THUMBNAIL=gemini-3.7-flash GEMINI_IMAGE_MODEL=gemini-3.1-flash-image diff --git a/CLAUDE.md b/CLAUDE.md index fddd111..d69807d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -129,7 +129,7 @@ critic that scores, dedupes by angle and returns 10, each paired with a 1-4 word `thumbnail_text` that complements the title rather than repeating it. Rules baked in: payoff inside 50 characters (phones cut there), keyword in the first 3 words, same language as the transcript. Text model is -`GEMINI_MODEL_THUMBNAIL` (default `gemini-3.5-flash`), deliberately not +`GEMINI_MODEL_THUMBNAIL` (default `gemini-3.7-flash`), deliberately not `GEMINI_MODEL`: flash-lite is fine for a closed-choice layout pick and visibly worse at creative titles. Image model is `GEMINI_IMAGE_MODEL` (default `gemini-3.1-flash-image`). diff --git a/thumbnail.py b/thumbnail.py index 31fc0ef..f3fc856 100644 --- a/thumbnail.py +++ b/thumbnail.py @@ -13,7 +13,7 @@ from PIL import Image, ImageDraw, ImageFont, ImageFilter # but titles are the one place where the creative gap between lite and flash # shows, and ten titles per video cost cents either way. The image model # stays on gemini-3.1-flash-image; the text models cannot draw. -TEXT_MODEL = os.environ.get("GEMINI_MODEL_THUMBNAIL") or "gemini-3.5-flash" +TEXT_MODEL = os.environ.get("GEMINI_MODEL_THUMBNAIL") or "gemini-3.7-flash" IMAGE_MODEL = os.environ.get("GEMINI_IMAGE_MODEL") or "gemini-3.1-flash-image" # Frames sent with the transcript instead of the whole video. Gemini bills