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.

bugfix: conversation parameters (#438)

Bin1dee5de9b4cb
diff --git a/sdks/python-client/dify_client/client.py b/sdks/python-client/dify_client/client.py
index 1a8bc3602ed..23f9b9c3ab8 100644
--- a/sdks/python-client/dify_client/client.py
+++ b/sdks/python-client/dify_client/client.py
@@ -65,8 +65,8 @@ class ChatClient(DifyClient):
return self._send_request("GET", "/messages", params=params)
- def get_conversations(self, user, first_id=None, limit=None, pinned=None):
- params = {"user": user, "first_id": first_id, "limit": limit, "pinned": pinned}
+ def get_conversations(self, user, last_id=None, limit=None, pinned=None):
+ params = {"user": user, "last_id": last_id, "limit": limit, "pinned": pinned}
return self._send_request("GET", "/conversations", params=params)
def rename_conversation(self, conversation_id, name, user):
diff --git a/sdks/python-client/setup.py b/sdks/python-client/setup.py
index 17ba87fde28..3d4e0b0bbd1 100644
--- a/sdks/python-client/setup.py
+++ b/sdks/python-client/setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="dify-client",
- version="0.1.7",
+ version="0.1.8",
author="Dify",
author_email="[email protected]",
description="A package for interacting with the Dify Service-API",