How to Keep Prompts Versioned Alongside Model Updates
Keep prompts versioned alongside model updates so a prompt can be rolled back when a new model version breaks it.
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Keep prompts versioned alongside model updates so a prompt can be rolled back when a new model version breaks it.
Check whether a model version change caused a regression by running the same test set on both versions and comparing scores.
Fix model output that stops mid-answer by raising the token cap or shortening the input, and checking the finish reason.
Fix a model that ignores a JSON Schema format by checking support, simplifying the schema and switching to Structured Outputs.
Compare a text-only model with a vision model on a chart task by giving both the same chart and scoring what each…
Check an image's size against vision model input limits before sending it, and resize it if the request would be rejected.
Get timestamps in a transcript with verbose_json so each segment carries its start and end time.
Split audio under the 25 MB Whisper upload limit by cutting it into parts at quiet pauses, then transcribing each part.
Choose a Whisper model size by testing the smallest size that gets your words right, from tiny up to large.
Transcribe meeting audio with the Whisper API by sending the audio file and reading back the transcript text.