Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 24, 2025

The default endpoint https://api.githubcopilot.com doesn't work with PAT authentication. Changed default to https://models.github.ai/inference and renamed the environment variable to the more generic AI_API_ENDPOINT.

Changes

  • src/seclab_taskflow_agent/capi.py: Renamed COPILOT_API_ENDPOINTAI_API_ENDPOINT, changed default from api.githubcopilot.com to models.github.ai/inference
  • src/seclab_taskflow_agent/agent.py: Updated imports and references
  • tests/test_yaml_parser.py: Added test coverage for endpoint configuration and environment variable override

Usage

# Default (models.github.ai/inference)
from seclab_taskflow_agent.capi import AI_API_ENDPOINT

# Override via environment
AI_API_ENDPOINT=https://api.githubcopilot.com python -m seclab_taskflow_agent

Both endpoints remain fully supported via the environment variable.

Original prompt

This section details on the original issue you should resolve

<issue_title>Change the default API endpoint</issue_title>
<issue_description>Change it to https://models.github.ai/inference. (It is currently set to https://api.githubcopilot.com, which doesn't work with a PAT.)
Also rename COPILOT_API_ENDPOINT to something more generic like AI_API_ENDPOINT.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 24, 2025 17:34
…COPILOT_API_ENDPOINT to AI_API_ENDPOINT

Co-authored-by: kevinbackhouse <4358136+kevinbackhouse@users.noreply.github.com>
Co-authored-by: kevinbackhouse <4358136+kevinbackhouse@users.noreply.github.com>
Copilot AI changed the title [WIP] Change default API endpoint to new URL Change default API endpoint to models.github.ai/inference and rename COPILOT_API_ENDPOINT to AI_API_ENDPOINT Nov 24, 2025
Copilot AI requested a review from kevinbackhouse November 24, 2025 17:39
Copilot finished work on behalf of kevinbackhouse November 24, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the default API endpoint

2 participants