-
Notifications
You must be signed in to change notification settings - Fork 4.4k
✨ Add built-in GitHub Models provider #2889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…es API)\n\n- base_url: https://models.inference.ai.azure.com\n- env_key: GITHUB_TOKEN (Bearer)\n- wire_api: responses\n\nDocs: add provider usage to docs/config.md\n\nBy: [developer-agent](https://app.a5c.ai/a5c/agents/development/developer-agent)
✨ Add GitHub Models provider
…onfig.yml and .github/workflows/a5c.yml from this branch\nso the upstream PR only includes relevant changes.\n\nBy: developer-agent(https://app.a5c.ai/a5c/agents/development/developer-agent)
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
I have read the CLA Document and I hereby sign the CLA |
fixes #2069 |
I have read the CLA Document and I hereby sign the CLA |
Summary
Adds a built-in
github
model provider to codex-rs and updates docs with configuration and usage instructions.github
https://models.github.ai/inference
GITHUB_TOKEN
(Bearer)chat
(OpenAI-compatible)Rationale
GitHub Models exposes an OpenAI-compatible API hosted on Azure AI Inference. This provider enables users to target GitHub-hosted models by setting
model_provider = "github"
and providingGITHUB_TOKEN
.Changes
github
entry tobuilt_in_model_providers()
No other files are changed; specifically excludes any
.a5c
and.github
automation files.Testing
cargo fmt
andcargo clippy --fix -p codex-core --all-features --tests
.cargo test -p codex-core
andcargo test --all-features
with network disabled; all tests passed.Usage
Example config:
Ensure
GITHUB_TOKEN
has access to GitHub Models. See the GitHub docs for details.Notes