Unverified Commit 1dee5de9 authored by Bin's avatar Bin Committed by GitHub

bugfix: conversation parameters (#438)

parent 742bad93
...@@ -65,8 +65,8 @@ class ChatClient(DifyClient): ...@@ -65,8 +65,8 @@ class ChatClient(DifyClient):
return self._send_request("GET", "/messages", params=params) return self._send_request("GET", "/messages", params=params)
def get_conversations(self, user, first_id=None, limit=None, pinned=None): def get_conversations(self, user, last_id=None, limit=None, pinned=None):
params = {"user": user, "first_id": first_id, "limit": limit, "pinned": pinned} params = {"user": user, "last_id": last_id, "limit": limit, "pinned": pinned}
return self._send_request("GET", "/conversations", params=params) return self._send_request("GET", "/conversations", params=params)
def rename_conversation(self, conversation_id, name, user): def rename_conversation(self, conversation_id, name, user):
......
...@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup( setup(
name="dify-client", name="dify-client",
version="0.1.7", version="0.1.8",
author="Dify", author="Dify",
author_email="hello@dify.ai", author_email="hello@dify.ai",
description="A package for interacting with the Dify Service-API", description="A package for interacting with the Dify Service-API",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment