[PR #5174] [MERGED] Add User-Agent header for Anthropic API calls #5337

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5174
Author: @mikelambert
Created: 3/8/2026
Status: Merged
Merged: 3/23/2026
Merged by: @timothycarambat

Base: masterHead: mike/user-agent


📝 Commits (5)

  • 3ea5db7 Add User-Agent header for Anthropic API calls
  • c4b6bea Merge branch 'master' into mike/user-agent
  • 8d26300 remove test, simplify header default
  • eb385bf Merge branch 'mike/user-agent' of github.com:mikelambert/anything-llm into pr-5174-branch
  • 2111713 unset change to spread

📊 Changes

2 files changed (+8 additions, -0 deletions)

View changed files

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

📄 Description

Pull Request Type

  • feat (New feature)

Relevant Issues

None

Description

Passes User-Agent: AnythingLLM/{version} to the Anthropic SDK so Anthropic can identify traffic from AnythingLLM.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • 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/5174 **Author:** [@mikelambert](https://github.com/mikelambert) **Created:** 3/8/2026 **Status:** ✅ Merged **Merged:** 3/23/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `mike/user-agent` --- ### 📝 Commits (5) - [`3ea5db7`](https://github.com/Mintplex-Labs/anything-llm/commit/3ea5db75921034d2ce281249e920260e6bfe8b96) Add User-Agent header for Anthropic API calls - [`c4b6bea`](https://github.com/Mintplex-Labs/anything-llm/commit/c4b6bea5dd8047265921396e5fbc290b1c5ec7f0) Merge branch 'master' into mike/user-agent - [`8d26300`](https://github.com/Mintplex-Labs/anything-llm/commit/8d26300244ca4f2def4c299312aa9b33292b3db5) remove test, simplify header default - [`eb385bf`](https://github.com/Mintplex-Labs/anything-llm/commit/eb385bf2ee3a47306c2619f0ef70c94c45d54861) Merge branch 'mike/user-agent' of github.com:mikelambert/anything-llm into pr-5174-branch - [`2111713`](https://github.com/Mintplex-Labs/anything-llm/commit/21117137a464351d43f060453e1c7da03d2d03e1) unset change to spread ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/anthropic/index.js` (+4 -0) 📝 `server/utils/agents/aibitat/providers/anthropic.js` (+4 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [X] ✨ feat (New feature) ### Relevant Issues None ### Description Passes User-Agent: AnythingLLM/{version} to the Anthropic SDK so Anthropic can identify traffic from AnythingLLM. ### Developer Validations - [X] I ran `yarn lint` from the root of the repo & committed changes - [X] Relevant documentation has been updated (if applicable) - [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:01 -04:00
yindo closed this issue 2026-06-05 15:21:01 -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#5337