mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
bugfix: conversation parameters (#438)
This commit is contained in:
parent
742bad93b5
commit
1dee5de9b4
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user