[PR #4538] [CLOSED] feat: add n1n.ai API integration as model provider #4663

Closed
opened 2026-02-22 18:36:17 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4538
Author: @nehaaprasad
Created: 10/13/2025
Status: Closed

Base: masterHead: feat/n1n-provider


📝 Commits (9)

  • a48119f feat: add n1n LLM provider with OpenAI-compatible API integration
  • d4fd46c feat: add n1n agent provider for aibitat workflows
  • adabfae feat: add n1n options component for API key and model selection
  • deff21b feat: add n1n logo for provider branding
  • 434db81 feat: register n1n provider in getLLMProvider and getLLMProviderClass
  • 7550245 feat: export N1nProvider for agent system
  • 44b71aa feat: add n1n case to getProviderForConfig in aibitat
  • 8995415 feat: add n1n to onboarding LLM provider selection
  • 191b1e6 feat: add n1n to general settings LLM providers

📊 Changes

9 files changed (+459 additions, -0 deletions)

View changed files

frontend/src/components/LLMSelection/N1nOptions/index.jsx (+99 -0)
frontend/src/media/llmprovider/n1n.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+10 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
server/utils/AiProviders/n1n/index.js (+244 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
server/utils/agents/aibitat/providers/n1n.js (+87 -0)
📝 server/utils/helpers/index.js (+6 -0)

📄 Description

Pull Request Type

  • feat

Relevant Issues

resolves #4532

What is in this change?

Adds n1n.ai as a new LLM provider, providing access to 400+ large language models through a single API key.

Changes:

  • Backend: Added N1nLLM provider with OpenAI-compatible API integration and agent support
  • Frontend: Added n1n configuration component with API key input and model selection
  • Integrated into onboarding flow and settings pages

Features:

  • Supports 400+ models (OpenAI, Anthropic, Gemini, Llama, etc.)
  • Streaming and non-streaming completions
  • Agent workflow compatible

Additional Information

Configuration environment variables:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4538 **Author:** [@nehaaprasad](https://github.com/nehaaprasad) **Created:** 10/13/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/n1n-provider` --- ### 📝 Commits (9) - [`a48119f`](https://github.com/Mintplex-Labs/anything-llm/commit/a48119f22eb85d89f91920ff41501cace2b0d985) feat: add n1n LLM provider with OpenAI-compatible API integration - [`d4fd46c`](https://github.com/Mintplex-Labs/anything-llm/commit/d4fd46c065e4691bf4c9dbfa3f03c7e2df4b7e19) feat: add n1n agent provider for aibitat workflows - [`adabfae`](https://github.com/Mintplex-Labs/anything-llm/commit/adabfae07f012a8b34107b6ddae9c487ec629333) feat: add n1n options component for API key and model selection - [`deff21b`](https://github.com/Mintplex-Labs/anything-llm/commit/deff21b64c2b8f7ba6e4e103a3d8fb15b9fd9c86) feat: add n1n logo for provider branding - [`434db81`](https://github.com/Mintplex-Labs/anything-llm/commit/434db81e7264431bf7e730931c6a1901ec8d3d97) feat: register n1n provider in getLLMProvider and getLLMProviderClass - [`7550245`](https://github.com/Mintplex-Labs/anything-llm/commit/7550245910b6b3d252686a08d3e0f4b29310f7f9) feat: export N1nProvider for agent system - [`44b71aa`](https://github.com/Mintplex-Labs/anything-llm/commit/44b71aaeaec43ba9dedf4e69acc04419ef875bfe) feat: add n1n case to getProviderForConfig in aibitat - [`8995415`](https://github.com/Mintplex-Labs/anything-llm/commit/89954154900e5a1fbcca84f40d7dad98abe83aeb) feat: add n1n to onboarding LLM provider selection - [`191b1e6`](https://github.com/Mintplex-Labs/anything-llm/commit/191b1e6b7ff2806f2db77065cded177c2a9a06b7) feat: add n1n to general settings LLM providers ### 📊 Changes **9 files changed** (+459 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/LLMSelection/N1nOptions/index.jsx` (+99 -0) ➕ `frontend/src/media/llmprovider/n1n.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) ➕ `server/utils/AiProviders/n1n/index.js` (+244 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) ➕ `server/utils/agents/aibitat/providers/n1n.js` (+87 -0) 📝 `server/utils/helpers/index.js` (+6 -0) </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat ### Relevant Issues resolves #4532 ### What is in this change? Adds **n1n.ai** as a new LLM provider, providing access to 400+ large language models through a single API key. **Changes:** - Backend: Added `N1nLLM` provider with OpenAI-compatible API integration and agent support - Frontend: Added n1n configuration component with API key input and model selection - Integrated into onboarding flow and settings pages **Features:** - Supports 400+ models (OpenAI, Anthropic, Gemini, Llama, etc.) - Streaming and non-streaming completions - Agent workflow compatible ### Additional Information Configuration environment variables: - `N1N_API_KEY` (required) - `N1N_MODEL_PREF` (optional) - Resources: https://n1n.ai/ | https://docs.n1n.ai/ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:17 -05:00
yindo closed this issue 2026-02-22 18:36:17 -05:00
yindo changed title from [PR #4538] feat: add n1n.ai API integration as model provider to [PR #4538] [CLOSED] feat: add n1n.ai API integration as model provider 2026-06-05 15:19:42 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4663