Load Codex model options dynamically

This commit is contained in:
2026-07-15 20:16:46 +02:00
parent 02481c3de6
commit 1c9fefc089
4 changed files with 145 additions and 28 deletions

View File

@@ -17,7 +17,8 @@ OPENAI_API_KEY=
# Optional: set a default model. Leave empty to use the Codex runtime default.
CODEX_DEFAULT_MODEL=
# Optional: model buttons in /model. Format: "Label=model,Label=model"
# Optional: fallback model buttons for /model if the live Codex model list is unavailable.
# Format: "Label=model,Label=model"
CODEX_MODEL_CHOICES=GPT-5.5=gpt-5.5,GPT-5.4=gpt-5.4,GPT-5.4 mini=gpt-5.4-mini
# Optional: full-access, workspace-write, or read-only. Server-admin mode defaults to full-access.