mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 23:45:51 +08:00
fix: question classify can't use
This commit is contained in:
parent
e544541926
commit
abe34a71f7
@ -513,7 +513,11 @@ class LLMNode(BaseNode[LLMNodeData]):
|
|||||||
|
|
||||||
# model config
|
# model config
|
||||||
completion_params = node_data_model.completion_params
|
completion_params = node_data_model.completion_params
|
||||||
if self.node_data.structured_output_enabled and self.node_data.structured_output:
|
if (
|
||||||
|
isinstance(self.node_data, LLMNodeData)
|
||||||
|
and self.node_data.structured_output_enabled
|
||||||
|
and self.node_data.structured_output
|
||||||
|
):
|
||||||
completion_params["structured_output_schema"] = json.dumps(
|
completion_params["structured_output_schema"] = json.dumps(
|
||||||
self.node_data.structured_output.get("schema", {}), ensure_ascii=False
|
self.node_data.structured_output.get("schema", {}), ensure_ascii=False
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user