[PR #4999] [MERGED] add support for custom headers for LLM Generic OpenAI #4854

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4999
Author: @timothycarambat
Created: 2/13/2026
Status: Merged
Merged: 2/13/2026
Merged by: @timothycarambat

Base: masterHead: 4988-custom-generic-openai-headers


📝 Commits (2)

  • 9d027ff add support for custom headers for LLM Generic OpenAI
  • a964b4d add env

📊 Changes

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

View changed files

📝 docker/.env.example (+1 -0)
📝 server/.env.example (+1 -0)
📝 server/utils/AiProviders/genericOpenAi/index.js (+26 -0)
📝 server/utils/agents/aibitat/providers/genericOpenAi.js (+2 -0)
📝 server/utils/helpers/updateENV.js (+2 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4988

What is in this change?

Supports adding custom headers for generic OpenAI
requires manual edit of the ENV - not GUI support for this

ENV should be a CSV of headers you wish to apply

Additional Information

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/4999 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/13/2026 **Status:** ✅ Merged **Merged:** 2/13/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4988-custom-generic-openai-headers` --- ### 📝 Commits (2) - [`9d027ff`](https://github.com/Mintplex-Labs/anything-llm/commit/9d027ff3d8ed575f1e4f45442c41520f3070edcf) add support for custom headers for LLM Generic OpenAI - [`a964b4d`](https://github.com/Mintplex-Labs/anything-llm/commit/a964b4d7b84ac37fe2162437caa53f226716e652) add env ### 📊 Changes **5 files changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `server/.env.example` (+1 -0) 📝 `server/utils/AiProviders/genericOpenAi/index.js` (+26 -0) 📝 `server/utils/agents/aibitat/providers/genericOpenAi.js` (+2 -0) 📝 `server/utils/helpers/updateENV.js` (+2 -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 #4988 ### What is in this change? Supports adding custom headers for generic OpenAI **requires manual edit of the ENV - not GUI support for this** ENV should be a CSV of headers you wish to apply <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### 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:36:40 -05:00
yindo closed this issue 2026-02-22 18:36:40 -05:00
yindo changed title from [PR #4999] add support for custom headers for LLM Generic OpenAI to [PR #4999] [MERGED] add support for custom headers for LLM Generic OpenAI 2026-06-05 15:20:43 -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#4854