[PR #1178] [MERGED] Add generic OpenAI endpoint support #3611

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1178
Author: @timothycarambat
Created: 4/23/2024
Status: Merged
Merged: 4/23/2024
Merged by: @timothycarambat

Base: masterHead: 662-generic-open-ai-wrapper


📝 Commits (2)

  • be11cf2 Add generic OpenAI endpoint support
  • ffef86a allow any input for model in case provider does not support models endpoint

📊 Changes

11 files changed (+441 additions, -108 deletions)

View changed files

📝 docker/.env.example (+6 -0)
frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx (+70 -0)
frontend/src/media/llmprovider/generic-openai.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+10 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+8 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+117 -107)
📝 server/.env.example (+6 -0)
📝 server/models/systemSettings.js (+6 -0)
server/utils/AiProviders/genericOpenAi/index.js (+193 -0)
📝 server/utils/helpers/index.js (+6 -1)
📝 server/utils/helpers/updateENV.js (+19 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #662

What is in this change?

Added support for the "Generic" OpenAI provider for those who use proxies or have services running locally or otherwise that can support OpenAI Compatible calls.

Additional Information

We will NOT provider support for anyone who encounters issues with this integration because the nature of this wrapper is generic and its nearly 100% likely the set up is not fully OpenAI compatible (streaming) or they have set up their integration wrong

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/1178 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 4/23/2024 **Status:** ✅ Merged **Merged:** 4/23/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `662-generic-open-ai-wrapper` --- ### 📝 Commits (2) - [`be11cf2`](https://github.com/Mintplex-Labs/anything-llm/commit/be11cf28577186469072183f06f11a8c8f573a09) Add generic OpenAI endpoint support - [`ffef86a`](https://github.com/Mintplex-Labs/anything-llm/commit/ffef86acac9adfb28e553d4bf013ce413ec37247) allow any input for model in case provider does not support models endpoint ### 📊 Changes **11 files changed** (+441 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+6 -0) ➕ `frontend/src/components/LLMSelection/GenericOpenAiOptions/index.jsx` (+70 -0) ➕ `frontend/src/media/llmprovider/generic-openai.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+8 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+117 -107) 📝 `server/.env.example` (+6 -0) 📝 `server/models/systemSettings.js` (+6 -0) ➕ `server/utils/AiProviders/genericOpenAi/index.js` (+193 -0) 📝 `server/utils/helpers/index.js` (+6 -1) 📝 `server/utils/helpers/updateENV.js` (+19 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #662 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Added support for the "Generic" OpenAI provider for those who use proxies or have services running locally or otherwise that can support OpenAI Compatible calls. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> **We will NOT provider support for anyone who encounters issues with this integration because the nature of this wrapper is generic and its nearly 100% likely the set up is not fully OpenAI compatible (streaming) or they have set up their integration wrong** ### Developer Validations <!-- All of the applicable items should be checked. --> - [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:34:08 -05:00
yindo closed this issue 2026-02-22 18:34:08 -05:00
yindo changed title from [PR #1178] Add generic OpenAI endpoint support to [PR #1178] [MERGED] Add generic OpenAI endpoint support 2026-06-05 15:14:19 -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#3611