[PR #5671] [CLOSED] feat: add AnyAPI LLM provider #5525

Closed
opened 2026-06-05 15:21:37 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5671
Author: @es697
Created: 5/21/2026
Status: Closed

Base: masterHead: feat/add-anyapi-provider


📝 Commits (1)

  • 8ce4213 feat: add AnyAPI LLM provider

📊 Changes

24 files changed (+591 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)
📝 docker/.env.example (+4 -0)
frontend/src/components/LLMSelection/AnyAPIOptions/index.jsx (+97 -0)
📝 frontend/src/components/ProviderPrivacy/constants.js (+8 -0)
frontend/src/media/llmprovider/anyapi.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+10 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+1 -0)
📝 locales/README.fa-IR.md (+1 -0)
📝 locales/README.ja-JP.md (+1 -0)
📝 locales/README.tr-TR.md (+1 -0)
📝 locales/README.zh-CN.md (+1 -0)
📝 server/.env.example (+4 -0)
📝 server/endpoints/utils.js (+3 -0)
📝 server/models/systemSettings.js (+4 -0)
server/utils/AiProviders/anyapi/index.js (+168 -0)
📝 server/utils/AiProviders/modelMap/index.js (+1 -0)
📝 server/utils/agents/aibitat/providers/ai-provider.js (+8 -0)
server/utils/agents/aibitat/providers/anyapi.js (+168 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)

...and 4 more files

📄 Description

resolves #5672

Description

Add AnyAPI as a new LLM provider. AnyAPI provides unified access to 400+ AI models from leading providers (OpenAI, Anthropic, Google, Meta, DeepSeek, etc.) through a single OpenAI-compatible API endpoint.

Changes

  • Add AnyAPILLM provider class with streaming and chat completion support
  • Add agent provider with native tool calling support
  • Add frontend UI components for API key and model selection
  • Add environment variable templates
  • Update provider registry and mappings

Features

  • OpenAI-compatible API (https://api.anyapi.ai/v1)
  • Supports all major models (GPT-4o, Claude, Gemini, Llama, DeepSeek, etc.)
  • Streaming responses
  • Native tool calling for agents
  • Model listing via /models endpoint with fallback defaults

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/5671 **Author:** [@es697](https://github.com/es697) **Created:** 5/21/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/add-anyapi-provider` --- ### 📝 Commits (1) - [`8ce4213`](https://github.com/Mintplex-Labs/anything-llm/commit/8ce4213364b7562fdb0953a8ab2363f7b1a21f21) feat: add AnyAPI LLM provider ### 📊 Changes **24 files changed** (+591 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docker/.env.example` (+4 -0) ➕ `frontend/src/components/LLMSelection/AnyAPIOptions/index.jsx` (+97 -0) 📝 `frontend/src/components/ProviderPrivacy/constants.js` (+8 -0) ➕ `frontend/src/media/llmprovider/anyapi.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+1 -0) 📝 `locales/README.fa-IR.md` (+1 -0) 📝 `locales/README.ja-JP.md` (+1 -0) 📝 `locales/README.tr-TR.md` (+1 -0) 📝 `locales/README.zh-CN.md` (+1 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/endpoints/utils.js` (+3 -0) 📝 `server/models/systemSettings.js` (+4 -0) ➕ `server/utils/AiProviders/anyapi/index.js` (+168 -0) 📝 `server/utils/AiProviders/modelMap/index.js` (+1 -0) 📝 `server/utils/agents/aibitat/providers/ai-provider.js` (+8 -0) ➕ `server/utils/agents/aibitat/providers/anyapi.js` (+168 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) _...and 4 more files_ </details> ### 📄 Description resolves #5672 ### Description Add [AnyAPI](https://anyapi.ai) as a new LLM provider. AnyAPI provides unified access to 400+ AI models from leading providers (OpenAI, Anthropic, Google, Meta, DeepSeek, etc.) through a single OpenAI-compatible API endpoint. ### Changes - Add `AnyAPILLM` provider class with streaming and chat completion support - Add agent provider with native tool calling support - Add frontend UI components for API key and model selection - Add environment variable templates - Update provider registry and mappings ### Features - OpenAI-compatible API (`https://api.anyapi.ai/v1`) - Supports all major models (GPT-4o, Claude, Gemini, Llama, DeepSeek, etc.) - Streaming responses - Native tool calling for agents - Model listing via /models endpoint with fallback defaults ### Developer Validations - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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-06-05 15:21:37 -04:00
yindo closed this issue 2026-06-05 15:21:37 -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#5525