[PR #680] [MERGED] Implement support for HuggingFace Inference Endpoints #3453

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/680
Author: @timothycarambat
Created: 2/6/2024
Status: Merged
Merged: 2/6/2024
Merged by: @timothycarambat

Base: masterHead: hugging-face-llm-support


📝 Commits (1)

  • bc815e6 Implement support for HuggingFace Inference Endpoints

📊 Changes

12 files changed (+424 additions, -1 deletions)

View changed files

📝 docker/.env.example (+5 -0)
frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx (+56 -0)
frontend/src/media/llmprovider/huggingface.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 (+10 -0)
📝 server/.env.example (+5 -0)
📝 server/models/systemSettings.js (+14 -0)
server/utils/AiProviders/huggingface/index.js (+185 -0)
📝 server/utils/chats/stream.js (+106 -0)
📝 server/utils/helpers/index.js (+3 -0)
📝 server/utils/helpers/updateENV.js (+22 -1)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #679

What is in this change?

Adds support for Hugging Faces dedicated inference endpoints for LLM Selection

Additional Information

We may need to build some documentation on how to set up a dedicate endpoint so that chats can be sent as it may not be obvious to a layperson. Anyone using HuggingFace should understand the requirements though as the defaults for a new endpoint do work.

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/680 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/6/2024 **Status:** ✅ Merged **Merged:** 2/6/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `hugging-face-llm-support` --- ### 📝 Commits (1) - [`bc815e6`](https://github.com/Mintplex-Labs/anything-llm/commit/bc815e69bc68f966c4f56f160174a275ec03cbec) Implement support for HuggingFace Inference Endpoints ### 📊 Changes **12 files changed** (+424 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+5 -0) ➕ `frontend/src/components/LLMSelection/HuggingFaceOptions/index.jsx` (+56 -0) ➕ `frontend/src/media/llmprovider/huggingface.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` (+10 -0) 📝 `server/.env.example` (+5 -0) 📝 `server/models/systemSettings.js` (+14 -0) ➕ `server/utils/AiProviders/huggingface/index.js` (+185 -0) 📝 `server/utils/chats/stream.js` (+106 -0) 📝 `server/utils/helpers/index.js` (+3 -0) 📝 `server/utils/helpers/updateENV.js` (+22 -1) </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 #679 ### What is in this change? Adds support for Hugging Faces dedicated inference endpoints for LLM Selection ### Additional Information We may need to build some documentation on how to set up a dedicate endpoint so that chats can be sent as it may not be obvious to a layperson. Anyone using HuggingFace should understand the requirements though as the defaults for a new endpoint do work. ### 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:33:49 -05:00
yindo closed this issue 2026-02-22 18:33:49 -05:00
yindo changed title from [PR #680] Implement support for HuggingFace Inference Endpoints to [PR #680] [MERGED] Implement support for HuggingFace Inference Endpoints 2026-06-05 15:13:30 -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#3453