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 |
|---|---|
| `opus` | `o3` |
| `sonnet` | `o4-mini` |
| `haiku` | `o4-mini` |
| `opus` | `gpt-5.4` |
| `sonnet` | `gpt-5.3-codex` |
| `haiku` | `gpt-5.1-codex-mini` |
### Template variables

View file

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