fix: correct Codex model mappings and effort levels

- opus → gpt-5.4, sonnet → gpt-5.3-codex, haiku → gpt-5.1-codex-mini
- effort max → extra high (was xhigh)
- config.toml default model → gpt-5.3-codex
- README model mapping table updated
This commit is contained in:
Bryan Ramos 2026-04-02 09:02:35 -04:00
parent 49b2f71c94
commit 68217dfd4b
2 changed files with 9 additions and 9 deletions

View file

@ -87,9 +87,9 @@ nix develop # enter devShell with yq + envsubst
| Claude Code | Codex CLI | | Claude Code | Codex CLI |
|---|---| |---|---|
| `opus` | `o3` | | `opus` | `gpt-5.4` |
| `sonnet` | `o4-mini` | | `sonnet` | `gpt-5.3-codex` |
| `haiku` | `o4-mini` | | `haiku` | `gpt-5.1-codex-mini` |
### Template variables ### Template variables

View file

@ -81,10 +81,10 @@ expand_body() {
map_model() { map_model() {
local model="$1" local model="$1"
case "$model" in case "$model" in
opus) echo "o3" ;; opus) echo "gpt-5.4" ;;
sonnet) echo "o4-mini" ;; sonnet) echo "gpt-5.3-codex" ;;
haiku) echo "o4-mini" ;; haiku) echo "gpt-5.1-codex-mini" ;;
*) echo "o4-mini" ;; *) echo "gpt-5.3-codex" ;;
esac esac
} }
@ -97,7 +97,7 @@ map_effort() {
low) echo "low" ;; low) echo "low" ;;
medium) echo "medium" ;; medium) echo "medium" ;;
high) echo "high" ;; high) echo "high" ;;
max) echo "xhigh" ;; max) echo "extra high" ;;
*) echo "medium" ;; *) echo "medium" ;;
esac esac
} }
@ -277,7 +277,7 @@ TOML
esac esac
cat > "$CODEX_DIR/config.toml" <<TOML cat > "$CODEX_DIR/config.toml" <<TOML
model = "o4-mini" model = "gpt-5.3-codex"
model_reasoning_effort = "medium" model_reasoning_effort = "medium"
sandbox_mode = "${config_sandbox}" sandbox_mode = "${config_sandbox}"
approval_policy = "on-request" approval_policy = "on-request"