Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: nodejs endpoint (#20)

Joelc2e7fe107a20
diff --git a/sdks/nodejs-client/index.js b/sdks/nodejs-client/index.js
index 902ecbd880d..6faf5f5b060 100644
--- a/sdks/nodejs-client/index.js
+++ b/sdks/nodejs-client/index.js
@@ -17,7 +17,7 @@ const routes = {
},
createChatMessage: {
method: 'POST',
- url: () => `/chat-message`,
+ url: () => `/chat-messages`,
},
getConversationMessages: {
method: 'GET',
diff --git a/sdks/nodejs-client/package.json b/sdks/nodejs-client/package.json
index 350cfc97328..9c1a5ed5cf9 100644
--- a/sdks/nodejs-client/package.json
+++ b/sdks/nodejs-client/package.json
@@ -1,6 +1,6 @@
{
"name": "dify-client",
- "version": "1.0.2",
+ "version": "1.0.3",
"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",