[PR #3359] [MERGED] Prompt variables #4274

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

📋 Pull Request Information

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

Base: masterHead: 3157-feat-prompt-variables


📝 Commits (10+)

  • d1cd4c9 wip prompt variables
  • ead6bea refactor backend + add popup suggestions menu to frontend
  • e52fb5a use processString to replace all variables in system prompts
  • b7e1796 update translations
  • 3062195 fix translations
  • 5fe8e98 Merge branch 'master' into 3157-feat-prompt-variables
  • 54bb9e8 wip highlight variables
  • ad8c138 revert accidental name change
  • 897a2c7 Merge branch 'master' into 3157-feat-prompt-variables
  • fa0a080 Merge branch 'master' into 3157-feat-prompt-variables

📊 Changes

39 files changed (+9779 additions, -9601 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 frontend/package.json (+3 -2)
📝 frontend/src/App.jsx (+7 -1)
📝 frontend/src/components/SettingsSidebar/index.jsx (+6 -0)
📝 frontend/src/locales/ar/common.js (+536 -597)
📝 frontend/src/locales/da/common.js (+542 -687)
📝 frontend/src/locales/de/common.js (+542 -643)
📝 frontend/src/locales/en/common.js (+1 -0)
📝 frontend/src/locales/es/common.js (+537 -600)
📝 frontend/src/locales/fa/common.js (+536 -591)
📝 frontend/src/locales/fr/common.js (+537 -602)
📝 frontend/src/locales/he/common.js (+532 -579)
📝 frontend/src/locales/it/common.js (+536 -599)
📝 frontend/src/locales/ko/common.js (+531 -578)
📝 frontend/src/locales/nl/common.js (+536 -594)
📝 frontend/src/locales/pt_BR/common.js (+536 -596)
📝 frontend/src/locales/ru/common.js (+536 -596)
📝 frontend/src/locales/tr/common.js (+536 -595)
📝 frontend/src/locales/vn/common.js (+536 -592)
📝 frontend/src/locales/zh/common.js (+528 -562)

...and 19 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #xxx

What is in this change?

  • Create Admin pages for CRUD on user defined system variables
  • Allow injection of system variables in system prompt
  • Create preset system variables: user.bio, user.name, datetime , date , time
  • Create variable suggestion popup similar to a code editor suggestion popup on the system prompt text area

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/3359 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 3/25/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `3157-feat-prompt-variables` --- ### 📝 Commits (10+) - [`d1cd4c9`](https://github.com/Mintplex-Labs/anything-llm/commit/d1cd4c976861c2b909dd48ec2de9f27c7f9492ff) wip prompt variables - [`ead6bea`](https://github.com/Mintplex-Labs/anything-llm/commit/ead6bea71334c9997f76ecc75bb90044fbaf53c2) refactor backend + add popup suggestions menu to frontend - [`e52fb5a`](https://github.com/Mintplex-Labs/anything-llm/commit/e52fb5ad2a9613199b5af58b517aadbb29014e2f) use processString to replace all variables in system prompts - [`b7e1796`](https://github.com/Mintplex-Labs/anything-llm/commit/b7e1796a996be385a9065c8b10d89f9a43599e35) update translations - [`3062195`](https://github.com/Mintplex-Labs/anything-llm/commit/3062195241ce2429168d91e59e00ca54094994a9) fix translations - [`5fe8e98`](https://github.com/Mintplex-Labs/anything-llm/commit/5fe8e98aa48004f6aa8861457a1a143d914a4e33) Merge branch 'master' into 3157-feat-prompt-variables - [`54bb9e8`](https://github.com/Mintplex-Labs/anything-llm/commit/54bb9e8ab2102164bc8452bdc11544f7618568f5) wip highlight variables - [`ad8c138`](https://github.com/Mintplex-Labs/anything-llm/commit/ad8c138000e401c14d9f5d1a52bf46261214debe) revert accidental name change - [`897a2c7`](https://github.com/Mintplex-Labs/anything-llm/commit/897a2c7d15af15e0ff86d00f813ac5cc9cc603ce) Merge branch 'master' into 3157-feat-prompt-variables - [`fa0a080`](https://github.com/Mintplex-Labs/anything-llm/commit/fa0a0802b503a4753aed244ad5a800cbf3731dc8) Merge branch 'master' into 3157-feat-prompt-variables ### 📊 Changes **39 files changed** (+9779 additions, -9601 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `frontend/package.json` (+3 -2) 📝 `frontend/src/App.jsx` (+7 -1) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+6 -0) 📝 `frontend/src/locales/ar/common.js` (+536 -597) 📝 `frontend/src/locales/da/common.js` (+542 -687) 📝 `frontend/src/locales/de/common.js` (+542 -643) 📝 `frontend/src/locales/en/common.js` (+1 -0) 📝 `frontend/src/locales/es/common.js` (+537 -600) 📝 `frontend/src/locales/fa/common.js` (+536 -591) 📝 `frontend/src/locales/fr/common.js` (+537 -602) 📝 `frontend/src/locales/he/common.js` (+532 -579) 📝 `frontend/src/locales/it/common.js` (+536 -599) 📝 `frontend/src/locales/ko/common.js` (+531 -578) 📝 `frontend/src/locales/nl/common.js` (+536 -594) 📝 `frontend/src/locales/pt_BR/common.js` (+536 -596) 📝 `frontend/src/locales/ru/common.js` (+536 -596) 📝 `frontend/src/locales/tr/common.js` (+536 -595) 📝 `frontend/src/locales/vn/common.js` (+536 -592) 📝 `frontend/src/locales/zh/common.js` (+528 -562) _...and 19 more files_ </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 #xxx ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Create Admin pages for CRUD on user defined system variables - Allow injection of system variables in system prompt - Create preset system variables: `user.bio`, `user.name`, `datetime `, `date `, `time` - Create variable suggestion popup similar to a code editor suggestion popup on the system prompt text area ### 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:35:30 -05:00
yindo closed this issue 2026-02-22 18:35:30 -05:00
yindo changed title from [PR #3359] Prompt variables to [PR #3359] [MERGED] Prompt variables 2026-06-05 15:17:44 -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#4274