Skip to content

Commit 1720b9e

Browse files
committed
v2.0.0
1 parent 8a06030 commit 1720b9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pydify/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from .common import DifyType, DifyBaseClient
1414

1515
def create_client(type: str, base_url: str, api_key: str) -> DifyBaseClient:
16-
if type == "workflow":
16+
if type == DifyType.Workflow:
1717
return WorkflowClient(base_url=base_url, api_key=api_key)
18-
elif type == "chatbot":
18+
elif type == DifyType.Chatbot:
1919
return ChatbotClient(base_url=base_url, api_key=api_key)
2020
elif type == "chatflow":
2121
return ChatflowClient(base_url=base_url, api_key=api_key)
@@ -27,7 +27,7 @@ def create_client(type: str, base_url: str, api_key: str) -> DifyBaseClient:
2727
raise ValueError(f"Invalid client type: {type}")
2828

2929

30-
__version__ = "1.0.2"
30+
__version__ = "2.0.0"
3131
__all__ = [
3232
"WorkflowClient",
3333
"ChatbotClient",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setuptools.setup(
3535
name="pydify",
36-
version="1.0.2",
36+
version="2.0.0",
3737
author="Dify SDK Team",
3838
author_email="[email protected]",
3939
description="A Python SDK for interacting with Dify API",

0 commit comments

Comments
 (0)