Skip to content

fix: suppress agenthub_config default on direct chat-model construction (#825)#826

Merged
radu-mocanu merged 1 commit intomainfrom
fix/agenthub-config-direct-ctor
May 6, 2026
Merged

fix: suppress agenthub_config default on direct chat-model construction (#825)#826
radu-mocanu merged 1 commit intomainfrom
fix/agenthub-config-direct-ctor

Conversation

@radu-mocanu
Copy link
Copy Markdown
Collaborator

@radu-mocanu radu-mocanu commented May 6, 2026

Summary

  • direct construction of UiPathChat, UiPathChatOpenAI, UiPathAzureChatOpenAI, UiPathChatBedrock, UiPathChatBedrockConverse, UiPathChatAnthropicBedrock, UiPathChatGoogleGenerativeAI, UiPathChatVertex no longer sends X-UiPath-AgentHub-Config: agentsruntime
  • factory path used by low-code agents is unchanged and keeps the upstream agentsruntime default
  • UIPATH_AGENTHUB_CONFIG env var is honored when set explicitly

Why

Fixes #825

temporary client-side workaround to unblock local debug and external-token runs that hit 403 from agenthub governance after v0.10.x. proper fix will need to reside in uipath-llm-clients-python https://github.com/UiPath/uipath-llm-client-python/blob/35d4d31eeccad14eb7d6e690524e91c6b78624e0/src/uipath/llm_client/settings/platform/settings.py#L68

Development Package

  • Use uipath pack --nolock to get the latest dev build from this PR (requires version range).
  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.10.16.dev1008264452",

  # Any version from PR
  "uipath-langchain>=0.10.16.dev1008260000,<0.10.16.dev1008270000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-langchain = { index = "testpypi" }

[tool.uv]
override-dependencies = [
    "uipath-langchain>=0.10.16.dev1008260000,<0.10.16.dev1008270000",
]

@radu-mocanu radu-mocanu force-pushed the fix/agenthub-config-direct-ctor branch from 6b02f54 to 17f595d Compare May 6, 2026 12:11
@radu-mocanu radu-mocanu force-pushed the fix/agenthub-config-direct-ctor branch from 949b65a to 0aa71c5 Compare May 6, 2026 12:25
@radu-mocanu radu-mocanu merged commit 10e95ac into main May 6, 2026
68 of 72 checks passed
@radu-mocanu radu-mocanu deleted the fix/agenthub-config-direct-ctor branch May 6, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breaking changes in authentication from uipath-langchain v0.9.24 -> v0.10.15?

2 participants