Skip to content

feat: rewrite Requesty n8n community node using AI Node SDK - #1

Closed
devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
devin/1780352661-rewrite-n8n-community-node
Closed

feat: rewrite Requesty n8n community node using AI Node SDK#1
devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
devin/1780352661-rewrite-n8n-community-node

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

Complete rewrite of the Requesty n8n community node using @n8n/ai-node-sdk + n8n-node CLI. Replaces the old deprecated implementation with a modern LmChatRequesty node that uses supplyModel() for OpenAI-compatible chat model integration.

Key changes:

  • supplyModel({ type: 'openai', baseUrl: 'https://router.requesty.ai/v1', ... }) handles all LangChain/ChatOpenAI plumbing
  • Dynamic model dropdown loads 531+ models from /v1/models
  • Supports temperature, maxTokens, topP, frequencyPenalty, presencePenalty
  • Credential uses Bearer auth with test request to /v1/models
  • CI (lint+build) and publish (npm provenance) GitHub Actions

E2E tested with n8n v2.22.6:

Model Test Result
openai/gpt-5.5 Parallel tool calls 2 calls, 315 tokens
anthropic/claude-opus-4-8 Parallel tool calls 2 calls, 586 tokens
openai/o4-mini Reasoning + tool call Works, 352 tokens
google/gemini-2.5-pro Tool call Works, 553 tokens
deepseek/deepseek-v4-pro Tool call Works, 345 tokens
xai/grok-4.3 Basic chat Works, 471 tokens

Tool calling, streaming, multi-provider routing, and all parameter options verified working through n8n's AI Agent node.

Link to Devin session: https://app.devin.ai/sessions/e433cbc061904ec6be7681e209aa4882
Requested by: @Thibault00

Complete rewrite of the Requesty n8n community node using the official
@n8n/ai-node-sdk and n8n-node CLI tooling.

Changes:
- Replace old node with new LmChatRequesty using supplyModel() pattern
- Update credentials to use RequestyApi with Bearer token auth
- Add dynamic model loading from /models endpoint (531+ models)
- Support all OpenAI-compatible parameters (temperature, maxTokens, etc.)
- Add CI workflow for lint/build checks
- Add publish workflow for npm releases with provenance
- Update to MIT license and proper package metadata

Tested end-to-end with n8n v2.22.6:
- OpenAI (gpt-4o-mini) and Anthropic (claude-sonnet-4) via Requesty
- Tool calling with Calculator (233 tokens, 2 model calls)
- Streaming SSE responses
- Dynamic model dropdown loading
- Parameter options (temperature, max_tokens, top_p, etc.)

Co-Authored-By: thibault <thibault.jaigu@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration Bot and others added 3 commits June 2, 2026 08:55
- Rename ai-node-sdk -> @n8n/ai-node-sdk in peerDependencies
- Use npm install --ignore-scripts instead of npm ci (no lockfile needed)
- Remove cache: npm since no lockfile is committed

Co-Authored-By: thibault <thibault.jaigu@gmail.com>
n8n's @n8n/community-nodes/valid-peer-dependencies lint rule requires
exactly 'ai-node-sdk' as the peer dep name. This package isn't on npm
(provided by n8n at runtime), so CI uses --legacy-peer-deps to skip
resolution.

Co-Authored-By: thibault <thibault.jaigu@gmail.com>
Co-Authored-By: thibault <thibault.jaigu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant