Feat/ai4sci tool protocol #1
Reference in New Issue
Block a user
Delete Branch "feat/ai4sci-tool-protocol"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Type of change
Checklist
uv run ruff check .passesuv run pytestpasses* fix(llm): make gpt-5.x usable through ccproxy Codex OAuth Two independent blockers made current OpenAI models fail when routed through ccproxy's Codex OAuth endpoint: 1. ccproxy's default Codex model mappings rewrite any gpt-*/o1-*/o3-*/ claude-* model to gpt-5.3-codex before forwarding, silently overriding the configured model and failing outright on accounts where gpt-5.3-codex is not served ("The 'gpt-5.3-codex' model is not supported when using Codex with a ChatGPT account"). start_ccproxy() now generates a config with empty codex model mappings and passes it via 'ccproxy serve --config'. 2. ccproxy forwards the client's own User-Agent upstream and only gap-fills its Codex headers, so the backend gates current models on the client identity ("The '<model>' model requires a newer version of Codex"). get_chat_model() now sends Codex-CLI-shaped originator/version/User-Agent headers when the ccproxy Codex adapter is detected, overridable via EVOSCIENTIST_CODEX_CLIENT_VERSION. Verified live: gpt-5.5 and gpt-5.4 complete successfully through ccproxy Codex OAuth on a ChatGPT Plus account with both fixes; each fails without them. * fix(ccproxy): harden Codex client routing * fix(llm): keep Codex client identity consistent * docs: clarify Codex version floor * style: ruff format models.py after merge --------- Co-authored-by: Xi Zhang <106144707+X-iZhang@users.noreply.github.com> Co-authored-by: X-iZhang <zacharyzhang2022@gmail.com>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.