Skip to content

Commit 973b2eb

Browse files
authored
Merge pull request #361 from UiPath/fix/vertex_api_version
feat(llm): fix vertex api version
2 parents 42d7e5d + 36a8596 commit 973b2eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.1.32"
3+
version = "0.1.33"
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"

src/uipath_langchain/chat/vertex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _rewrite_vertex_url(original_url: str, gateway_url: str) -> httpx.URL | None
4747
Returns the gateway URL, or None if no rewrite needed.
4848
"""
4949
if "generateContent" in original_url or "streamGenerateContent" in original_url:
50-
return httpx.URL(gateway_url + "?api-version=v1")
50+
return httpx.URL(gateway_url)
5151
return None
5252

5353

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)