Skip to content

Commit 708ea07

Browse files
committed
fix example pipeline execution
1 parent da1ce23 commit 708ea07

2 files changed

Lines changed: 397 additions & 2 deletions

File tree

examples/langgraph_agent/agent/agent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ def build_graph_with_subgraph():
8080
api_key, url, model_name = get_model_config()
8181
model = init_chat_model(
8282
model_name,
83+
model_provider="openai",
8384
api_key=api_key,
84-
api_base=url,
85+
base_url=url,
8586
)
8687

8788
# Build calculator subgraph
@@ -127,8 +128,9 @@ def build_graph():
127128
api_key, url, model_name = get_model_config()
128129
model = init_chat_model(
129130
model_name,
131+
model_provider="openai",
130132
api_key=api_key,
131-
api_base=url,
133+
base_url=url,
132134
)
133135

134136
tools = [calculate]

0 commit comments

Comments
 (0)