[PR #11359] [CLOSED] i18n(common): add user language to prompt template #9510

Closed
opened 2025-11-11 18:24:28 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11359
Author: @U8F69
Created: 3/7/2025
Status: Closed

Base: devHead: feat_user_lang


📝 Commits (3)

  • 7cbaed7 i18n(common): add user language to prompt template
  • 28591ac Merge branch 'dev' into feat_user_lang
  • 9798026 refactor(lint): code lint

📊 Changes

5 files changed (+0 additions, -0 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -1)
📝 backend/open_webui/routers/tasks.py (+16 -3)
backend/open_webui/utils/request.py (+6 -0)
📝 backend/open_webui/utils/task.py (+28 -4)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+3 -1)

📄 Description

Added

  • Add support for {{USER_LANGUAGE}} variable and improved the default prompt template

🔄 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/open-webui/open-webui/pull/11359 **Author:** [@U8F69](https://github.com/U8F69) **Created:** 3/7/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat_user_lang` --- ### 📝 Commits (3) - [`7cbaed7`](https://github.com/open-webui/open-webui/commit/7cbaed7af2ce8afa3f169e895fd6467c1f781fe0) i18n(common): add user language to prompt template - [`28591ac`](https://github.com/open-webui/open-webui/commit/28591ac9b8c78d292fad358c5ec8585ecc549c16) Merge branch 'dev' into feat_user_lang - [`9798026`](https://github.com/open-webui/open-webui/commit/97980262d1b8e3e651d5e89744ec72bd3050201f) refactor(lint): code lint ### 📊 Changes **5 files changed** (+0 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -1) 📝 `backend/open_webui/routers/tasks.py` (+16 -3) ➕ `backend/open_webui/utils/request.py` (+6 -0) 📝 `backend/open_webui/utils/task.py` (+28 -4) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+3 -1) </details> ### 📄 Description ### Added - Add support for {{USER_LANGUAGE}} variable and improved the default prompt template --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:24:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#9510