Add provider setup shortcuts on upstream base#7
Merged
Conversation
- Only advertise the synthetic gpt-5.5 entry in /health, /v1/models, list output, and the generated catalog when ~/.codex/auth.json holds a usable tokens.access_token, so the picker never shows an option that would 401 on first use. - Resolve the gpt-5.5/openai-gpt-5-5 slug only when auth is present; otherwise raise SystemExit telling the user to run codex login. - Drop the inline BrokenPipeError handler in list_models in favor of a single _entrypoint() boundary that handles SIGPIPE cleanly for any CLI path that pipes to head/grep/etc. - README: promote 'pip install -e .' as the recommended install path, soften the maintainer benchmark claim into honest anecdata, and document the new auth-gated passthrough behavior + troubleshooting for the empty-catalog case. - Tests: add coverage for chatgpt_passthrough_available(), auth-gated list/resolve/catalog behavior in both directions.
- .github/workflows/ci.yml: pytest + compileall on Python 3.11 and 3.12
on push/PR to main.
- pyproject.toml: [project.optional-dependencies] dev so the dev loop
is a single pip install -e .[dev].
- CONTRIBUTING.md: dev loop, what kinds of PRs are useful, what to
include in bug reports, security disclosure policy.
- .github/ISSUE_TEMPLATE/{bug_report,feature_request}.md: structured
templates that ask for the diagnostic info we actually need.
- CHANGELOG.md: capture the auth-gating, docs, and tooling work.
- Make ~/.codex-shim/models.json the canonical default settings path instead of tying the repo identity to any single upstream model store. - Rename the generated Codex provider to codex_shim / Codex Shim. - Rename settings types to ModelSettings/ShimModel and keep support for both generic models+snake_case and legacy customModels+camelCase config shapes. - Rewrite README, metadata, issue templates, contributing docs, and changelog to describe the repo as an all-model BYOK Codex shim. - Add tests for the generic settings schema while preserving alias compatibility.
Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ws-on-upstream # Conflicts: # README.md # codex_shim/catalog.py # codex_shim/cli.py # codex_shim/server.py # codex_shim/settings.py # pyproject.toml # tests/test_server.py # tests/test_settings_catalog.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification