Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
1dee5de9
Unverified
Commit
1dee5de9
authored
Jun 25, 2023
by
Bin
Committed by
GitHub
Jun 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: conversation parameters (#438)
parent
742bad93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
client.py
sdks/python-client/dify_client/client.py
+2
-2
setup.py
sdks/python-client/setup.py
+1
-1
No files found.
sdks/python-client/dify_client/client.py
View file @
1dee5de9
...
@@ -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
,
fir
st_id
=
None
,
limit
=
None
,
pinned
=
None
):
def
get_conversations
(
self
,
user
,
la
st_id
=
None
,
limit
=
None
,
pinned
=
None
):
params
=
{
"user"
:
user
,
"
first_id"
:
fir
st_id
,
"limit"
:
limit
,
"pinned"
:
pinned
}
params
=
{
"user"
:
user
,
"
last_id"
:
la
st_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
):
...
...
sdks/python-client/setup.py
View file @
1dee5de9
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment