Skip to content

Added better dependencies to anthropic client#5

Merged
cosminacho merged 6 commits intomainfrom
bugfix/langchain_anthropic/fix_imports
Feb 3, 2026
Merged

Added better dependencies to anthropic client#5
cosminacho merged 6 commits intomainfrom
bugfix/langchain_anthropic/fix_imports

Conversation

@cosminacho
Copy link
Copy Markdown
Collaborator

@cosminacho cosminacho commented Feb 2, 2026

Development Package

Add these packages as dependencies in your pyproject.toml:

[project]
dependencies = [
  # Exact versions:
    "uipath-langchain-client==1.0.3.dev1000050030",

  # Or use version ranges for any build from this PR:
    "uipath-langchain-client>=1.0.3.dev1000050000,<1.0.3.dev1000060000",

]

[[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-client = { index = "testpypi" }


[tool.uv]
override-dependencies = [
    "uipath-langchain-client>=1.0.3.dev1000050000,<1.0.3.dev1000060000",

]

@cosminacho cosminacho added the build:dev Deploy to test in other repos label Feb 2, 2026
@cosminacho cosminacho merged commit 287ca44 into main Feb 3, 2026
8 checks passed
@cosminacho cosminacho deleted the bugfix/langchain_anthropic/fix_imports branch February 3, 2026 07:25
cosminacho added a commit that referenced this pull request Apr 1, 2026
Bug #5 — UiPathFireworksEmbeddings: self.model returned wrong model name
  Without an explicit field override, Pydantic kept two separate fields:
  FireworksEmbeddings.model (default 'nomic-ai/nomic-embed-text-v1.5') and
  UiPathBaseLLMClient.model_name (populated by the caller via alias 'model').
  self.model therefore always resolved to the stale FireworksEmbeddings default,
  silently ignoring whatever model name the caller passed.
  Fix: add model: str = Field(default='', alias='model_name') — the same override
  pattern used by every other embedding class — to collapse the two fields into
  one. Replace self.model with self.model_name in all four embed methods.

Bug #8 — UiPathEmbeddings: silent HTTP error swallowing + missing model field
  Two issues in embed_documents / aembed_documents:
  1. uipath_request / uipath_arequest were called without raise_status_error=True,
     so HTTP 4xx/5xx responses were silently accepted. The subsequent
     response.json()['data'] access would then raise a confusing KeyError or
     AttributeError rather than a clear HTTP error.
  2. The request body only contained {'input': texts}. The normalized API
     requires a 'model' field for routing, matching the pattern already used
     by the normalized chat model (_default_params includes 'model').
  Fix: pass raise_status_error=True and add 'model': self.model_name to the
  request body in both the sync and async paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Deploy to test in other repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant