Skip to content

Commit ff9db2e

Browse files
Make api.githubcopilot.com the default provider.
1 parent 910b424 commit ff9db2e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/seclab_taskflow_agent/capi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ def check_tool_calls(self, _model: str, model_info: dict) -> bool:
140140
),
141141
}
142142

143+
_DEFAULT_PROVIDER = "api.githubcopilot.com"
144+
143145
def get_provider(endpoint: str | None = None) -> APIProvider:
144146
"""Return the ``APIProvider`` for the given (or configured) endpoint URL.
145147
@@ -180,7 +182,7 @@ def get_provider(endpoint: str | None = None) -> APIProvider:
180182

181183
def get_AI_endpoint() -> str:
182184
"""Return the configured AI API endpoint URL."""
183-
return os.getenv("AI_API_ENDPOINT", default="https://models.github.ai/inference")
185+
return os.getenv("AI_API_ENDPOINT", default=_PROVIDERS[_DEFAULT_PROVIDER].base_url)
184186

185187

186188
def get_AI_token() -> str:

0 commit comments

Comments
 (0)