bugfix: conversation parameters (#438)

This commit is contained in:
Bin 2023-06-25 16:14:42 +08:00 committed by GitHub
parent 742bad93b5
commit 1dee5de9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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",