From 1dee5de9b4cb28fa30eb237a1a29379f633ee085 Mon Sep 17 00:00:00 2001 From: Bin Date: Sun, 25 Jun 2023 16:14:42 +0800 Subject: [PATCH] bugfix: conversation parameters (#438) --- sdks/python-client/dify_client/client.py | 4 ++-- sdks/python-client/setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdks/python-client/dify_client/client.py b/sdks/python-client/dify_client/client.py index 1a8bc3602e..23f9b9c3ab 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 17ba87fde2..3d4e0b0bbd 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="hello@dify.ai", description="A package for interacting with the Dify Service-API",