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.
This commit is contained in:
parent
eb6ef13bba
commit
8c477e090d
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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`).
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue