Skip to content

Commit 3c40a41

Browse files
authored
Merge pull request #334 from UiPath/chore/update-vertex-async-client
chore: use ChatGoogleGenerativeAI instead of deprecated Vertex
2 parents d96703e + bc6184c commit 3c40a41

File tree

8 files changed

+675
-1228
lines changed

8 files changed

+675
-1228
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
integration-tests:
3737
needs: [discover-testcases]
3838
runs-on: ubuntu-latest
39+
timeout-minutes: 10
3940
container:
4041
image: ghcr.io/astral-sh/uv:python3.12-bookworm
4142
env:

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.1.25"
3+
version = "0.1.26"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
@@ -33,9 +33,8 @@ maintainers = [
3333

3434
[project.optional-dependencies]
3535
vertex = [
36-
"langchain-google-vertexai>=2.1.2",
37-
"langchain-community>=0.4.1",
38-
"types-protobuf>=6.32.1.20251105",
36+
"langchain-google-genai>=2.0.0",
37+
"google-generativeai>=0.8.0",
3938
]
4039
bedrock = [
4140
"langchain-aws>=0.2.35",
@@ -84,7 +83,7 @@ select = ["E", "F", "B", "I"]
8483
[tool.ruff.lint.per-file-ignores]
8584
"*" = ["E501"]
8685
"src/uipath_langchain/chat/bedrock.py" = ["E402"]
87-
"src/uipath_langchain/chat/gemini.py" = ["E402"]
86+
"src/uipath_langchain/chat/vertex.py" = ["E402"]
8887

8988
[tool.ruff.format]
9089
quote-style = "double"

src/uipath_langchain/chat/gemini.py

Lines changed: 0 additions & 330 deletions
This file was deleted.

src/uipath_langchain/chat/openai.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import httpx
66
from langchain_openai import AzureChatOpenAI
7+
from uipath._utils._ssl_context import get_httpx_client_kwargs
78
from uipath.utils import EndpointManager
89

910
from .supported_models import OpenAIModels
@@ -87,11 +88,11 @@ def __init__(
8788
default_headers=self._build_headers(token),
8889
http_async_client=httpx.AsyncClient(
8990
transport=UiPathURLRewriteTransport(verify=True),
90-
verify=True,
91+
**get_httpx_client_kwargs(),
9192
),
9293
http_client=httpx.Client(
9394
transport=UiPathSyncURLRewriteTransport(verify=True),
94-
verify=True,
95+
**get_httpx_client_kwargs(),
9596
),
9697
api_key=token,
9798
api_version=api_version,

0 commit comments

Comments
 (0)