Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Parsing OpenAPI spec for external tools (#12518) (#12530)

lotsikf230a9232e00
diff --git a/api/core/tools/utils/parser.py b/api/core/tools/utils/parser.py
index f1dc1123b99..30e4fdcf06d 100644
--- a/api/core/tools/utils/parser.py
+++ b/api/core/tools/utils/parser.py
@@ -112,7 +112,7 @@ class ApiBasedToolSchemaParser:
llm_description=property.get("description", ""),
default=property.get("default", None),
placeholder=I18nObject(
- en_US=parameter.get("description", ""), zh_Hans=parameter.get("description", "")
+ en_US=property.get("description", ""), zh_Hans=property.get("description", "")
),
)