Fix API base url for Github Copilot provider (#12418)

This commit is contained in:
Joel Martin 2025-07-08 09:07:08 -07:00 committed by GitHub
parent 3cb45ccb6a
commit 559d06a55c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ from ..common_utils import GetAPIKeyError
class GithubCopilotConfig(OpenAIConfig):
GITHUB_COPILOT_API_BASE = "https://api.github.com/copilot/v1"
GITHUB_COPILOT_API_BASE = "https://api.githubcopilot.com/"
def __init__(
self,
api_key: Optional[str] = None,

View file

@ -54,7 +54,7 @@ def test_github_copilot_config_get_openai_compatible_provider_info():
custom_llm_provider="github_copilot",
)
assert api_base == "https://api.github.com/copilot/v1"
assert api_base == "https://api.githubcopilot.com/"
assert dynamic_api_key == mock_api_key
assert custom_llm_provider == "github_copilot"