You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use extended caching with GPT‑5.1, add the parameter "prompt_cache_retention='24h'" on the Responses or Chat Completions API. See the prompt caching docs for more detail.
What's a good next step here? The 5.1 chat (non-codex) models seem to be in good shape. Maybe pushing a release with those could unblock users while continuing to work on the codex integration? Thanks for all your work on this library.
Activity
simonw commentedon Nov 13, 2025
simonw commentedon Nov 13, 2025
The first two worked: https://gist.github.com/simonw/fce773879bcd66e01df59a5011899532
It looks like the codex models require the Responses API.
simonw commentedon Nov 13, 2025
Here's the GPT-5.1 pelican:
And for
gpt-5.1-chat-latest:GPT-5.1 models
gpt-5.1 and gpt-5.1-chat-latest, refs #1300
simonw commentedon Nov 13, 2025
Tried this instead:
https://gist.github.com/simonw/fd120c35d8d34512c6f15d8d8e5192ec
simonw commentedon Nov 13, 2025
Just spotted this in https://openai.com/index/gpt-5-1-for-developers/
Need to add that to this enum:
llm/llm/default_plugins/openai_models.py
Lines 456 to 460 in 0526abe
... or maybe we don't need to change that, since the default for 5.1 is
noneif you don't specify one.simonw commentedon Nov 13, 2025
Need to add support for extended prompt cache retention: https://platform.openai.com/docs/guides/prompt-caching#extended-prompt-cache-retention
liammonahan commentedon Dec 10, 2025
What's a good next step here? The 5.1 chat (non-codex) models seem to be in good shape. Maybe pushing a release with those could unblock users while continuing to work on the codex integration? Thanks for all your work on this library.
Release 0.28