@acedatacloud/node-red-glm 1.0.0

Call Ace Data Cloud GLM Chat Completions from a Node-RED flow.

npm install @acedatacloud/node-red-glm

GLM Chat for Node-RED

Call Ace Data Cloud GLM Chat Completions from a Node-RED flow. The node accepts one non-streaming request per input and returns the provider's JSON in msg.payload.

Install

Search for @acedatacloud/node-red-glm in Manage palette → Install. You can also install it with npm install @acedatacloud/node-red-glm in your Node-RED user directory and restart Node-RED. Use Node.js 22 or later with Node-RED 4 or 5.

Send a request

  1. Open Import → Examples → @acedatacloud/node-red-glm and select Ask GLM Chat.
  2. Open the GLM Chat node and configure an application token that can access this API. Use the raw token from Ace Data Cloud Applications. Node-RED stores it as a password credential outside the exported flow.
  3. Set a published model available to your application and deploy the flow. Click Example prompt once to send the request. Usage may consume Credits at the selected model's rates.

Set model to a published GLM model and supply the messages array. The node sends POST /glm/chat/completions and returns a single JSON response. Returned tool calls are data for the next node in your flow. Connect a Catch node for request errors. Each input sends at most one request.

{
  "model": "glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Explain a rainbow in one sentence."
    }
  ]
}

Public GLM Chat API contract

Node Info

Version: 1.0.0
Updated 4 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-glm-account
  • acedatacloud-glm-completions

Keywords

  • node-red
  • glm
  • chat
  • acedatacloud

Maintainers