AI Help

How do I pin an AI model version so my app doesn’t switch models unexpectedly?

Use a documented versioned model ID when available and record it with each run. Monitor support and deprecation dates.

Steps to follow

  1. Check the model catalog for a supported snapshot appropriate to the endpoint and task.
  2. Set that exact identifier in configuration and log the returned model information alongside the prompt version.
  3. Evaluate a replacement before the snapshot's retirement. Version pinning cannot guarantee indefinite availability or identical application behavior.

Example in practice

Illustrative example. A production extractor uses a supported snapshot while a separate evaluation compares the next candidate model.

Related AI help

Official guidance

OpenAI documentation