mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-01 02:22:00 +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)
|
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:
|
|||||||
|
|
||||||
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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user