-
Notifications
You must be signed in to change notification settings - Fork 6
Change default API endpoint to models.github.ai/inference and rename COPILOT_API_ENDPOINT to AI_API_ENDPOINT #94
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
Conversation
…COPILOT_API_ENDPOINT to AI_API_ENDPOINT Co-authored-by: kevinbackhouse <[email protected]>
Co-authored-by: kevinbackhouse <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR changes the default API endpoint from https://api.githubcopilot.com to https://models.github.ai/inference to support PAT authentication, and renames the environment variable from COPILOT_API_ENDPOINT to the more generic AI_API_ENDPOINT.
- Renamed
COPILOT_API_ENDPOINTconstant toAI_API_ENDPOINTacross the codebase - Updated default endpoint URL from
api.githubcopilot.comtomodels.github.ai/inference - Added test coverage for endpoint configuration and environment variable override
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/seclab_taskflow_agent/capi.py | Renamed environment variable constant and updated default endpoint URL; improved comment clarity |
| src/seclab_taskflow_agent/agent.py | Updated import statement and all references to use the renamed AI_API_ENDPOINT constant |
| tests/test_yaml_parser.py | Added new test class TestAPIEndpoint with tests for default endpoint and environment variable override |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
smoke test |
Deployment Triggered 🚀kevinbackhouse, started a branch deployment to smoketest (branch: You can watch the progress here 🔗 Details{
"type": "branch",
"environment": {
"name": "smoketest",
"url": null
},
"deployment": {
"timestamp": "2025-12-02T10:24:08.285Z",
"logs": "https://github.com/GitHubSecurityLab/seclab-taskflow-agent/actions/runs/19855269388"
},
"git": {
"branch": "copilot/change-default-api-endpoint",
"commit": "218e478783e99cf4e87a32ddbd53311c6ee7d0e0",
"verified": true,
"committer": "web-flow",
"html_url": "https://github.com/GitHubSecurityLab/seclab-taskflow-agent/commit/218e478783e99cf4e87a32ddbd53311c6ee7d0e0"
},
"context": {
"actor": "kevinbackhouse",
"noop": false,
"fork": false,
"comment": {
"created_at": "2025-12-02T10:23:52Z",
"updated_at": "2025-12-02T10:23:52Z",
"body": "smoke test",
"html_url": "https://github.com/GitHubSecurityLab/seclab-taskflow-agent/pull/94#issuecomment-3601305052"
}
},
"parameters": {
"raw": null,
"parsed": null
}
} |
Deployment Results ❌kevinbackhouse had a failure when deploying branch Details{
"status": "failure",
"environment": {
"name": "smoketest",
"url": null
},
"deployment": {
"id": 3404550599,
"timestamp": "2025-12-02T10:25:13.297Z",
"logs": "https://github.com/GitHubSecurityLab/seclab-taskflow-agent/actions/runs/19855269388",
"duration": 65
},
"git": {
"branch": "copilot/change-default-api-endpoint",
"commit": "218e478783e99cf4e87a32ddbd53311c6ee7d0e0",
"verified": true
},
"context": {
"actor": "kevinbackhouse",
"noop": false,
"fork": false
},
"reviews": {
"count": 2,
"decision": "APPROVED"
},
"parameters": {
"raw": null,
"parsed": null
}
} |
The default endpoint
https://api.githubcopilot.comdoesn't work with PAT authentication. Changed default tohttps://models.github.ai/inferenceand renamed the environment variable to the more genericAI_API_ENDPOINT.Changes
src/seclab_taskflow_agent/capi.py: RenamedCOPILOT_API_ENDPOINT→AI_API_ENDPOINT, changed default fromapi.githubcopilot.comtomodels.github.ai/inferencesrc/seclab_taskflow_agent/agent.py: Updated imports and referencestests/test_yaml_parser.py: Added test coverage for endpoint configuration and environment variable overrideUsage
Both endpoints remain fully supported via the environment variable.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.