Revert "fix: solves the malformed json output and pydantic validation error p…" (#325)
This reverts commit a7315b46df.
This commit is contained in:
parent
b6edc0fc8a
commit
b09dfa70c0
|
|
@ -106,8 +106,7 @@ def planner_node(
|
||||||
elif AGENT_LLM_MAP["planner"] == "basic":
|
elif AGENT_LLM_MAP["planner"] == "basic":
|
||||||
llm = get_llm_by_type("basic").with_structured_output(
|
llm = get_llm_by_type("basic").with_structured_output(
|
||||||
Plan,
|
Plan,
|
||||||
method="json_schema",
|
method="json_mode",
|
||||||
strict=True,
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
llm = get_llm_by_type(AGENT_LLM_MAP["planner"])
|
llm = get_llm_by_type(AGENT_LLM_MAP["planner"])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue