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
d76d1adb
Unverified
Commit
d76d1adb
authored
Jan 29, 2024
by
Joel
Committed by
GitHub
Jan 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Nodejs sdk support auto rename conversation api (#2265)
parent
cadc6b17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.js
sdks/nodejs-client/index.js
+4
-4
package.json
sdks/nodejs-client/package.json
+1
-1
No files found.
sdks/nodejs-client/index.js
View file @
d76d1adb
...
...
@@ -27,8 +27,8 @@ export const routes = {
url
:
()
=>
`/conversations`
,
},
renameConversation
:
{
method
:
"P
ATCH
"
,
url
:
(
conversation_id
)
=>
`/conversations/
${
conversation_id
}
`
,
method
:
"P
OST
"
,
url
:
(
conversation_id
)
=>
`/conversations/
${
conversation_id
}
/name
`
,
},
deleteConversation
:
{
method
:
"DELETE"
,
...
...
@@ -204,8 +204,8 @@ export class ChatClient extends DifyClient {
);
}
renameConversation
(
conversation_id
,
name
,
user
)
{
const
data
=
{
name
,
user
};
renameConversation
(
conversation_id
,
name
,
user
,
auto_generate
)
{
const
data
=
{
name
,
user
,
auto_generate
};
return
this
.
sendRequest
(
routes
.
renameConversation
.
method
,
routes
.
renameConversation
.
url
(
conversation_id
),
...
...
sdks/nodejs-client/package.json
View file @
d76d1adb
{
"name"
:
"dify-client"
,
"version"
:
"2.
1
.0"
,
"version"
:
"2.
2
.0"
,
"description"
:
"This is the Node.js SDK for the Dify.AI API, which allows you to easily integrate Dify.AI into your Node.js applications."
,
"main"
:
"index.js"
,
"type"
:
"module"
,
...
...
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