From eb8a9c403988767a304285d4994fe822a5711304 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Thu, 28 Nov 2024 17:35:37 +0800 Subject: [PATCH] fix: add float type to default --- python/dify_plugin/entities/tool.py | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/dify_plugin/entities/tool.py b/python/dify_plugin/entities/tool.py index 8be224e..cf2ddcd 100644 --- a/python/dify_plugin/entities/tool.py +++ b/python/dify_plugin/entities/tool.py @@ -195,7 +195,7 @@ class ToolParameterForm(Enum): ) llm_description: Optional[str] = None required: Optional[bool] = False - default: Optional[Union[int, str]] = None + default: Optional[Union[int, float, str]] = None min: Optional[Union[float, int]] = None max: Optional[Union[float, int]] = None options: Optional[list[ToolParameterOption]] = None diff --git a/python/setup.py b/python/setup.py index e9422f5..71c22e5 100644 --- a/python/setup.py +++ b/python/setup.py @@ -2,7 +2,7 @@ setup( name="dify_plugin", - version="0.0.1-beta33", + version="0.0.1-beta34", author="langgenius", long_description_content_type="text/markdown", url="https://github.com/langgenius/dify-plugin-sdks.git",