I see that in `plugins/openai/models.py`, the most...
# ask-ai
e
I see that in
plugins/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.
t
Thanks for reaching out, Anson. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I looked into this concern about snapshot model IDs missing from
plugins/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