[PR #4393] [MERGED] Add User-Agent header on the requests sent by Generic OpenAI providers. #4609

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4393
Author: @angelplusultra
Created: 9/17/2025
Status: Merged
Merged: 9/17/2025
Merged by: @timothycarambat

Base: masterHead: 1496-append-user-agent


📝 Commits (4)

  • 3e71b4f Add User-Agent header on the requests sent by Generic OpenAI providers.
  • bc5901b Merge branch 'master' into 1496-append-user-agent
  • f997d87 Moved getAnythingLLMUserAgent helper fn to server/endpoints/utils.js and changed fallback version string to "unknown"
  • 69e85d9 Merge branch 'master' into 1496-append-user-agent

📊 Changes

3 files changed (+18 additions, -0 deletions)

View changed files

📝 server/endpoints/utils.js (+10 -0)
📝 server/utils/AiProviders/genericOpenAi/index.js (+4 -0)
📝 server/utils/agents/aibitat/providers/genericOpenAi.js (+4 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1496

What is in this change?

This PR adds a "User-Agent" header to requests made by both the basic and agent inference providers for Generic OpenAI.

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/4393 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 9/17/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1496-append-user-agent` --- ### 📝 Commits (4) - [`3e71b4f`](https://github.com/Mintplex-Labs/anything-llm/commit/3e71b4f90f8c700bde45b0a168d4bacf37c86031) Add User-Agent header on the requests sent by Generic OpenAI providers. - [`bc5901b`](https://github.com/Mintplex-Labs/anything-llm/commit/bc5901bc0a7bd122ba9404d3fc0f158daec004d5) Merge branch 'master' into 1496-append-user-agent - [`f997d87`](https://github.com/Mintplex-Labs/anything-llm/commit/f997d8712c14c9cf3d4d68720937d8d0d90a28d9) Moved getAnythingLLMUserAgent helper fn to server/endpoints/utils.js and changed fallback version string to "unknown" - [`69e85d9`](https://github.com/Mintplex-Labs/anything-llm/commit/69e85d9a0cf176602391ba5ce4afa14afd735614) Merge branch 'master' into 1496-append-user-agent ### 📊 Changes **3 files changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/utils.js` (+10 -0) 📝 `server/utils/AiProviders/genericOpenAi/index.js` (+4 -0) 📝 `server/utils/agents/aibitat/providers/genericOpenAi.js` (+4 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [x] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1496 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This PR adds a "User-Agent" header to requests made by both the basic and agent inference providers for Generic OpenAI. ### 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 - [ ] I have tested my code functionality - [ ] 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:10 -05:00
yindo closed this issue 2026-02-22 18:36:10 -05:00
yindo changed title from [PR #4393] Add User-Agent header on the requests sent by Generic OpenAI providers. to [PR #4393] [MERGED] Add User-Agent header on the requests sent by Generic OpenAI providers. 2026-06-05 15:19:25 -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#4609