Sfoglia il codice sorgente

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

lotsik 3 mesi fa
parent
commit
f230a9232e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      api/core/tools/utils/parser.py

+ 1 - 1
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", "")
                                 ),
                             )