Repository navigation
Commit 613d19d
committed
fix(responses): never send prompt_cache_retention to gpt-5.6 models
The ChatGPT codex backend rejects prompt_cache_retention with
{"detail":"Unsupported parameter: prompt_cache_retention"} on gpt-5.6
models (gpt-5.6-luna / gpt-5.6-sol), aborting the whole agent turn
mid-run. The parameter is emitted client-side by some Codex App builds
- it does not exist anywhere in codex-rs - and request bodies are
forwarded opaquely, so one bad field kills the turn (#2092).
Strip the field on the forward path, scoped to gpt-5.6 model ids: the
backend's cache handling is account-level and has provably varied by
deployment (one accepted "24h" and echoed it back), so a global strip
would silently drop a parameter a deployment honors. Non-gpt-5.6
models keep the existing preserve behavior.1 parent e97fb26 commit 613d19d
2 files changed
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
818 | 840 | | |
819 | 841 | | |
820 | 842 | | |
| |||
1382 | 1404 | | |
1383 | 1405 | | |
1384 | 1406 | | |
| 1407 | + | |
1385 | 1408 | | |
1386 | 1409 | | |
1387 | 1410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
1985 | 2028 | | |
1986 | 2029 | | |
1987 | 2030 | | |
| |||
0 commit comments