early-eye-79072
11/28/2025, 5:29 PMplugins/openai/models.py, the most recent snapshots of the models are not present: https://github.com/livekit/agents/blob/main/livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/models.py
For instance, gpt-5.1 is there but not gpt-5.1-2025-11-13 , and gpt-4.1 is there but not gpt-4.1-2025-04-14. I'm wondering whether it makes sense to add those snapshot models?
We're trying to avoid a situation where a model we rely on is changed, our understanding was that we ought to use model snapshots for that purpose. Providing a snapshot to the LK SDK currently throws an error.tall-airline-16756
11/28/2025, 5:29 PMtall-airline-16756
11/28/2025, 5:30 PMplugins/openai/models.py and the error you hit.
• You do not need to add snapshot IDs (like gpt-5.1-2025-11-13 or gpt-4.1-2025-04-14) to models.py. The OpenAI plugin accepts any valid model ID string in the model parameter, including time-stamped snapshots, so relying on snapshots for deterministic behavior is the correct approach.
• models.py contains canonical model names for convenience and autocompletion only; adding every snapshot isn’t practical or required.
If passing a snapshot currently throws an error, please check:
1. The snapshot ID is exactly correct (no typos).
2. Your OpenAI API key/account has access to that snapshot (some snapshots may not be available to all accounts).
3. You’re using a current version of the livekit-plugins-openai package (older versions may validate more strictly).
If you still see the error, please tell me:
• The exact model string you sent,
• The error message (full text),
• the plugin version you’re using (from pip show livekit-plugins-openai or your lockfile).
I’ll help troubleshoot the specific error next. Would you like me to walk through those checks with you?
Sources: OpenAI LLM plugin guide | LiveKit Docs | Models | LiveKit Docs | OpenAI LLM models | LiveKit Docs