Compare commits

...
Author SHA1 Message Date
William Fu-Hinthorn ebb781c0f8 Support mount_prefix in langgraph-sdk
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
2025-04-07 12:36:37 -07:00
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -162,6 +162,13 @@ def get_client(
transport = httpx.ASGITransport(app, root_path="/noauth")
except Exception:
url = "http://localhost:8123"
try:
from langgraph_api.config import HTTP_CONFIG
if prefix := HTTP_CONFIG.get("mount_prefix"):
url = f"{url}{prefix}"
except ImportError:
pass
if transport is None:
transport = httpx.AsyncHTTPTransport(retries=5)
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-sdk"
version = "0.1.61"
version = "0.1.62"
description = "SDK for interacting with LangGraph API"
authors = []
license = "MIT"