Skip to content

Commit a3e7e63

Browse files
authored
Fixed model discovery on agenthub (#10)
1 parent c7c2341 commit a3e7e63

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_llm_client` (core package) will be documented in this file.
44

5+
## [1.0.6]
6+
7+
### Bug Fix
8+
- Fixed model discovery on AgentHub Settings.
9+
510
## [1.0.5] - 2026-02-03
611

712
### Refactor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__titile__ = "UiPath LLM Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services."
3-
__version__ = "1.0.5"
3+
__version__ = "1.0.6"

src/uipath_llm_client/settings/agenthub/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ class AgentHubBaseSettings(UiPathBaseSettings):
4848
client_secret: SecretStr | None = Field(default=None, validation_alias="UIPATH_CLIENT_SECRET")
4949
client_scope: str | None = Field(default=None, validation_alias="UIPATH_CLIENT_SCOPE")
5050

51+
# AgentHub configuration (used for discovery)
52+
agenthub_config: str = Field(default="agentsruntime", validation_alias="UIPATH_AGENTHUB_CONFIG")
53+
5154
# Tracing configuration
52-
agenthub_config: str | None = Field(default=None, validation_alias="UIPATH_AGENTHUB_CONFIG")
5355
process_key: str | None = Field(default=None, validation_alias="UIPATH_PROCESS_KEY")
5456
job_key: str | None = Field(default=None, validation_alias="UIPATH_JOB_KEY")
5557

tests/core/test_base_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,13 @@ def test_build_base_url_normalized(self, agenthub_env_vars, normalized_api_confi
433433
)
434434
assert "agenthub_/llm/api/chat/completions" in url
435435

436-
def test_build_auth_headers_empty_by_default(self, agenthub_env_vars):
437-
"""Test build_auth_headers returns empty dict by default."""
436+
def test_build_auth_headers_has_default_config(self, agenthub_env_vars):
437+
"""Test build_auth_headers includes default agenthub_config."""
438438
with patch.dict(os.environ, agenthub_env_vars, clear=True):
439439
with patch("uipath_llm_client.settings.agenthub.settings.AuthService"):
440440
settings = AgentHubSettings()
441441
headers = settings.build_auth_headers()
442-
assert headers == {}
442+
assert headers == {"X-UiPath-AgentHub-Config": "agentsruntime"}
443443

444444
def test_build_auth_headers_with_tracing(self, agenthub_env_vars):
445445
"""Test build_auth_headers includes tracing headers when set."""

0 commit comments

Comments
 (0)