[PR #4780] [CLOSED] feat: add AI Badgr (OpenAI-compatible) LLM provider #4767

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4780
Author: @ghost
Created: 12/14/2025
Status: Closed

Base: masterHead: master


📝 Commits (5)

  • 8e92915 Initial plan
  • 98e56c6 Add AI Badgr provider implementation
  • 198f122 Refactor: reduce code duplication in promptWindowLimit
  • 5294096 Add clarifying comments for OpenAI-compatible pattern
  • cf9058d Merge pull request #1 from miguelmanlyx/copilot/add-ai-badgr-provider

📊 Changes

5 files changed (+224 additions, -0 deletions)

View changed files

frontend/src/components/LLMSelection/AiBadgrOptions/index.jsx (+44 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 server/.env.example (+6 -0)
server/utils/AiProviders/aibadgr/index.js (+159 -0)
📝 server/utils/helpers/index.js (+6 -0)

📄 Description

Pull Request Type

  • [x ] feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

connect #xxx

What is in this change?

Adds AI Badgr as an optional OpenAI-compatible LLM provider.

Includes:

New provider implementation (server/utils/AiProviders/aibadgr) using OpenAI SDK with baseURL=https://aibadgr.com/api/v1

Tier-first default model preference (premium) with support for basic / normal / premium (and any OpenAI-compatible model name)

New onboarding/settings UI options for AI Badgr (API key + model preference)

Environment variable examples added to server/.env.example

Provider wiring in server/utils/helpers/index.js for both instance + class resolution

Additional Information

AI Badgr is labeled as Budget/Utility to set expectations, and this change is opt-in only (no default behavior changed for existing providers).

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

🔄 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/4780 **Author:** [@ghost](https://github.com/ghost) **Created:** 12/14/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`8e92915`](https://github.com/Mintplex-Labs/anything-llm/commit/8e92915d52b820547b7ea5334e0e222116be16c2) Initial plan - [`98e56c6`](https://github.com/Mintplex-Labs/anything-llm/commit/98e56c68d43a0ef2d92e43089472abc851d56629) Add AI Badgr provider implementation - [`198f122`](https://github.com/Mintplex-Labs/anything-llm/commit/198f122087ab2e186d0cfda03295eed1f6fb936f) Refactor: reduce code duplication in promptWindowLimit - [`5294096`](https://github.com/Mintplex-Labs/anything-llm/commit/52940962e674933b358d0981f2ef8137cd42d7a8) Add clarifying comments for OpenAI-compatible pattern - [`cf9058d`](https://github.com/Mintplex-Labs/anything-llm/commit/cf9058d26a32a318d5a2c86327a0b000d25fe6dc) Merge pull request #1 from miguelmanlyx/copilot/add-ai-badgr-provider ### 📊 Changes **5 files changed** (+224 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/LLMSelection/AiBadgrOptions/index.jsx` (+44 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `server/.env.example` (+6 -0) ➕ `server/utils/AiProviders/aibadgr/index.js` (+159 -0) 📝 `server/utils/helpers/index.js` (+6 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x ] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues connect #xxx ### What is in this change? Adds AI Badgr as an optional OpenAI-compatible LLM provider. Includes: New provider implementation (server/utils/AiProviders/aibadgr) using OpenAI SDK with baseURL=https://aibadgr.com/api/v1 Tier-first default model preference (premium) with support for basic / normal / premium (and any OpenAI-compatible model name) New onboarding/settings UI options for AI Badgr (API key + model preference) Environment variable examples added to server/.env.example Provider wiring in server/utils/helpers/index.js for both instance + class resolution ### Additional Information AI Badgr is labeled as Budget/Utility to set expectations, and this change is opt-in only (no default behavior changed for existing providers). ### 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-02-22 18:36:29 -05:00
yindo closed this issue 2026-02-22 18:36:29 -05:00
yindo changed title from [PR #4780] feat: add AI Badgr (OpenAI-compatible) LLM provider to [PR #4780] [CLOSED] feat: add AI Badgr (OpenAI-compatible) LLM provider 2026-06-05 15:20:16 -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#4767