Skip to content

Commit eca395b

Browse files
Merge branch 'main' into split-pypi-workflow
2 parents c43f08c + 24ae593 commit eca395b

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ dependencies = [
4040
"annotated-types==0.7.0",
4141
"anyio==4.9.0",
4242
"attrs==25.3.0",
43-
"Authlib==1.6.9",
43+
"Authlib==1.6.12",
4444
"certifi==2025.6.15",
4545
"cffi==2.0.0",
4646
"charset-normalizer==3.4.2",
4747
"click==8.2.1",
4848
"colorama==0.4.6",
49-
"cryptography==46.0.6",
49+
"cryptography==46.0.7",
5050
"cyclopts==4.0.0",
5151
"distro==1.9.0",
5252
"dnspython==2.8.0",
@@ -60,7 +60,7 @@ dependencies = [
6060
"httpcore==1.0.9",
6161
"httpx==0.28.1",
6262
"httpx-sse==0.4.1",
63-
"idna==3.10",
63+
"idna==3.15",
6464
"importlib_metadata==8.7.0",
6565
"isodate==0.7.2",
6666
"jedi==0.19.2",
@@ -92,10 +92,10 @@ dependencies = [
9292
"pydantic_core==2.46.3",
9393
"Pygments==2.20.0",
9494
"pyperclip==1.9.0",
95-
"python-dotenv==1.1.1",
95+
"python-dotenv==1.2.2",
9696
"python-lsp-jsonrpc==1.1.2",
9797
"python-lsp-server==1.12.2",
98-
"python-multipart==0.0.22",
98+
"python-multipart==0.0.27",
9999
"PyYAML==6.0.2",
100100
"referencing==0.36.2",
101101
"requests==2.33.0",
@@ -115,8 +115,8 @@ dependencies = [
115115
"types-requests==2.32.4.20250611",
116116
"typing-inspection==0.4.2",
117117
"typing_extensions==4.15.0",
118-
"ujson==5.12.0",
119-
"urllib3==2.6.3",
118+
"ujson==5.12.1",
119+
"urllib3==2.7.0",
120120
"uvicorn==0.35.0",
121121
"zipp==3.23.0",
122122
]

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:

tests/test_api_endpoint_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_default_api_endpoint(self):
2323
endpoint = get_AI_endpoint()
2424
assert endpoint is not None
2525
assert isinstance(endpoint, str)
26-
assert urlparse(endpoint).netloc == "models.github.ai"
26+
assert urlparse(endpoint).netloc == "api.githubcopilot.com"
2727
finally:
2828
if original_env:
2929
os.environ["AI_API_ENDPOINT"] = original_env

0 commit comments

Comments
 (0)