fix(codex): support exec optimizer backend#112
Conversation
|
@microsoft-github-policy-service agree |
|
Thanks for adding Codex as an optimizer backend — this is useful functionality and we would like to preserve the merge under your original PR and commit authorship. The branch now conflicts with backend registry/configuration work merged after it. Could you please rebase onto the latest We tested a union-style resolution locally and obtained: Please also keep the target and optimizer routing distinct and verify token accounting is not duplicated. Once rebased and green, we can re-review and merge this through #112 so your contributor record remains intact. |
b8d8d89 to
0b94f89
Compare
|
Rebased onto latest Conflict resolution preserved the newer Azure/OpenAI, Claude, Qwen, MiniMax, and Validation: python -m pytest tests/test_codex_optimizer_backend.py -q
# 12 passed
python -m mkdocs build --strict
# passed
python -c "import sys; sys.argv=['train.py','--config','configs/searchqa/default.yaml','--backend','codex']; from scripts.train import parse_args, load_config; cfg=load_config(parse_args()); print(cfg['optimizer_backend'], cfg['target_backend'])"
# codex_exec codex_execCurrent PR branch is merge-clean against |
Summary
codex_execas an optimizer backend--backend codexroute both optimizer and target through Codex execskillopt.model.codex_backendWhy
The Codex integration already supports running the target through
codex exec, but selecting--backend codexleft the optimizer onopenai_chat. Users trying to run SkillOpt fully through Codex still had an API-backed optimizer path.This keeps the existing backend split model and only adds
codex_execto the optimizer side. Claude Code remains target-only.Validation
python -m pytest tests/test_codex_optimizer_backend.py -qpython -m mkdocs build --strictpython -c "import sys; sys.argv=['train.py','--config','configs/searchqa/default.yaml','--backend','codex']; from scripts.train import parse_args, load_config; cfg=load_config(parse_args()); print(cfg['optimizer_backend'], cfg['target_backend'])"printscodex_exec codex_execNote: full
python -m pytest -qwas also attempted on Windows, but currentmainhas unrelated path-separator assertions in ALFWorld/Sleep tests. This PR intentionally leaves those Windows-support fixes out to keep the change scoped to Codex optimizer support.