[PR #3361] [MERGED] Support Gitee AI(LLM Provider) #4271

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3361
Author: @fchange
Created: 2/26/2025
Status: Merged
Merged: 11/25/2025
Merged by: @timothycarambat

Base: masterHead: gitee_ai


📝 Commits (8)

  • 91ad34f Support Gitee AI(LLM Provider)
  • 4bcb99e Merge branch 'master' into gitee_ai
  • 3380bef refactor(server): 重构 GiteeAI 模型窗口限制功能,暂时将窗口限制硬编码,计划使用外部 API 数据和缓存
  • 3bd55e7 merge master
  • 557070d updates for Gitee AI
  • 2d606b0 use legacy lookup since gitee does not enable getting token context windows
  • 756779d add more missing records
  • 847034f reorder imports

📊 Changes

22 files changed (+726 additions, -4 deletions)

View changed files

📝 README.md (+1 -0)
📝 docker/.env.example (+5 -0)
frontend/src/components/LLMSelection/GiteeAIOptions/index.jsx (+116 -0)
frontend/src/media/llmprovider/giteeai.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 (+9 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+1 -0)
📝 server/.env.example (+5 -0)
📝 server/endpoints/utils.js (+3 -0)
📝 server/models/systemSettings.js (+5 -0)
📝 server/storage/models/.gitignore (+2 -1)
server/utils/AiProviders/giteeai/index.js (+397 -0)
📝 server/utils/AiProviders/modelMap/legacy.js (+22 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/ai-provider.js (+8 -0)
server/utils/agents/aibitat/providers/giteeai.js (+85 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
📝 server/utils/agents/index.js (+5 -3)
📝 server/utils/helpers/customModels.js (+17 -0)

...and 2 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #3360

What is in this change?

Add support for Gitee AI LLM models
Add support for Gitee AI as agent provider

Additional Information

image

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/3361 **Author:** [@fchange](https://github.com/fchange) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `gitee_ai` --- ### 📝 Commits (8) - [`91ad34f`](https://github.com/Mintplex-Labs/anything-llm/commit/91ad34f559bdf13c5d4d4181bcb411291d6aa6c0) Support Gitee AI(LLM Provider) - [`4bcb99e`](https://github.com/Mintplex-Labs/anything-llm/commit/4bcb99e15a4bd32132cf4cebc21d1212879b795c) Merge branch 'master' into gitee_ai - [`3380bef`](https://github.com/Mintplex-Labs/anything-llm/commit/3380bef179c56866a84f980651e5cec33894ad18) refactor(server): 重构 GiteeAI 模型窗口限制功能,暂时将窗口限制硬编码,计划使用外部 API 数据和缓存 - [`3bd55e7`](https://github.com/Mintplex-Labs/anything-llm/commit/3bd55e772be4713b31775ae2b2a756b29d7faa4d) merge master - [`557070d`](https://github.com/Mintplex-Labs/anything-llm/commit/557070d332b5c646417f4946484245d21c7a883f) updates for Gitee AI - [`2d606b0`](https://github.com/Mintplex-Labs/anything-llm/commit/2d606b05e0c31f7196e1582e9bc7d745e79994b5) use legacy lookup since gitee does not enable getting token context windows - [`756779d`](https://github.com/Mintplex-Labs/anything-llm/commit/756779d06b30dd07cea5b3303c62d2b846e65e23) add more missing records - [`847034f`](https://github.com/Mintplex-Labs/anything-llm/commit/847034f684ccf8d94372a8f44b1f498e38d1f6e1) reorder imports ### 📊 Changes **22 files changed** (+726 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docker/.env.example` (+5 -0) ➕ `frontend/src/components/LLMSelection/GiteeAIOptions/index.jsx` (+116 -0) ➕ `frontend/src/media/llmprovider/giteeai.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` (+9 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+1 -0) 📝 `server/.env.example` (+5 -0) 📝 `server/endpoints/utils.js` (+3 -0) 📝 `server/models/systemSettings.js` (+5 -0) 📝 `server/storage/models/.gitignore` (+2 -1) ➕ `server/utils/AiProviders/giteeai/index.js` (+397 -0) 📝 `server/utils/AiProviders/modelMap/legacy.js` (+22 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/ai-provider.js` (+8 -0) ➕ `server/utils/agents/aibitat/providers/giteeai.js` (+85 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) 📝 `server/utils/agents/index.js` (+5 -3) 📝 `server/utils/helpers/customModels.js` (+17 -0) _...and 2 more files_ </details> ### 📄 Description ### Pull Request Type - [X] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves **#3360** ### What is in this change? Add support for Gitee AI LLM models Add support for Gitee AI as agent provider ### Additional Information <img width="819" alt="image" src="https://github.com/user-attachments/assets/f3d788fc-fefc-496f-b373-5e6c80a3fa6b" /> ### Developer Validations - [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:35:29 -05:00
yindo closed this issue 2026-02-22 18:35:29 -05:00
yindo changed title from [PR #3361] Support Gitee AI(LLM Provider) to [PR #3361] [MERGED] Support Gitee AI(LLM Provider) 2026-06-05 15:17: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#4271