
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
@carpediemnn/node-red-ai-gateway
Advanced tools
Node-RED AI gateway nodes for OpenAI-compatible APIs with hidden credentials and prompt-cache observability.
一个面向 OpenAI-compatible 网关的 Node-RED AI 节点包。核心目标是:
cached_tokens、token usage、prefix hash 等诊断信息输出到 msg.ai。在 Node-RED 编辑器中打开:
菜单 -> Manage palette -> Install
搜索并安装:
@carpediemnn/node-red-ai-gateway
也可以在 Node-RED 用户目录中安装:
cd ~/.node-red
npm install @carpediemnn/node-red-ai-gateway
Docker 版 Node-RED 通常在容器的 /data 目录安装:
cd /data
npm install @carpediemnn/node-red-ai-gateway
安装后重启 Node-RED。
推荐的新 flow 结构是:
AI Provider -> AI Gateway
配置节点,只负责连接和安全:
https://api.openai.com/v1 或自己的网关 /v1 地址。password 字段保存。prompt_cache_key 开关。prompt_cache_retention 设置。API Key 不会作为普通节点配置保存,导出 flow 时也不会出现在 JSON 里。
推荐主节点。一个节点里通过 Mode 选择能力:
Text / Chat:普通文本生成、总结、分析。JSON:让模型输出 JSON,并解析成对象。Classify:输出 { label, confidence, reason }。Router:先分类,再按 label 顺序发到对应 output。Request:高级模式,直接请求任意 OpenAI-compatible endpoint。Cache Probe:用同一个稳定前缀连续请求两次,检查真实 provider cache 是否命中。当前包只暴露这两个节点:AI Provider 和 AI Gateway。
节点会尽量把稳定内容放在请求前缀里:
msg.payload这样相同任务的前缀更稳定,更容易命中 AI 服务商侧 prompt cache。
当 Provider 开启 prompt_cache_key 时,节点会根据稳定前缀、模型、API Base 生成稳定 key。
AI Gateway 会把诊断信息写到 msg.ai:
msg.ai = {
provider: "openai-compatible",
model: "openai/gpt-5.4-mini",
endpoint: "/chat/completions",
cache: {
providerCachedTokens: 8448,
promptTokens: 9036,
cacheHitRate: 0.9349,
prefixHash: "69298b89cea6bbe2"
},
usage: {
promptTokens: 9036,
completionTokens: 5,
totalTokens: 9041,
raw: {}
}
}
如果是 AI Gateway 的 Cache Probe 模式,输出会包含:
msg.payload = {
prefixHash: "...",
warmed: true,
first: {
cache: { providerCachedTokens: 0 }
},
second: {
cache: { providerCachedTokens: 8448 }
}
}
AI Provider 的 credentials password 字段里。msg 输出不包含 API Key。仓库内置了一个基础示例 flow:
examples/gateway-basic-flow.json
导入后,打开 AI Provider,填写自己的 API Base、模型和 API Key 即可运行。
npm test
npm run validate
安装到本地 Node-RED:
cd ~/.node-red
npm install /Users/shiyanan/Documents/nodered-ai-node
发布前检查:
npm run validate
npm publish --dry-run
当前测试覆盖:
AI Gateway 的 Text、JSON、Request、Cache Probe、Router 模式。FAQs
Node-RED AI gateway nodes for OpenAI-compatible APIs with hidden credentials and prompt-cache observability.
The npm package @carpediemnn/node-red-ai-gateway receives a total of 4 weekly downloads. As such, @carpediemnn/node-red-ai-gateway popularity was classified as not popular.
We found that @carpediemnn/node-red-ai-gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.