[PR #18607] [CLOSED] feat: Add calling system prompt #95890

Closed
opened 2026-05-15 22:05:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18607
Author: @Classic298
Created: 10/24/2025
Status: Closed

Base: devHead: add-calling-system-prompt


📝 Commits (10+)

  • 44c83fc Update config.py
  • 79116a4 Implement system prompt calling in chat.py
  • 634cd63 Update Interface.svelte
  • c358741 Update main.py
  • 37b3970 Add SYSTEM_PROMPT_CALLING_TEMPLATE to app config
  • e0d5de1 Merge pull request #18978 from open-webui/dev
  • 1d4fb10 Merge branch 'open-webui:main' into add-calling-system-prompt
  • a6aae06 Update tasks.py
  • 8c66874 Refactor submit event handling in Chat.svelte
  • f0da757 Update tasks.py

📊 Changes

6 files changed (+78 additions, -21 deletions)

View changed files

📝 backend/open_webui/config.py (+12 -0)
📝 backend/open_webui/main.py (+3 -0)
📝 backend/open_webui/routers/tasks.py (+6 -0)
📝 backend/open_webui/utils/chat.py (+16 -1)
📝 src/lib/components/admin/Settings/Interface.svelte (+18 -1)
📝 src/lib/components/chat/Chat.svelte (+23 -19)

📄 Description

Pull Request Checklist

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch may lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
  • Agentic AI Code:: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review and manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • Adds a configurable system prompt for the CALLING feature in open webui, to ensure the models behave appropriate and answer only in short sentences etc.

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 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/18607 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 10/24/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-calling-system-prompt` --- ### 📝 Commits (10+) - [`44c83fc`](https://github.com/open-webui/open-webui/commit/44c83fc63c3a2600805b6ebf80ab944201f819fe) Update config.py - [`79116a4`](https://github.com/open-webui/open-webui/commit/79116a433751e5babd150dc2b45085b8cf1a6993) Implement system prompt calling in chat.py - [`634cd63`](https://github.com/open-webui/open-webui/commit/634cd6395a93ed77d6ba474d337e162405a2afb5) Update Interface.svelte - [`c358741`](https://github.com/open-webui/open-webui/commit/c358741b73e9581751d7e0c1f759c91efcf0ab6d) Update main.py - [`37b3970`](https://github.com/open-webui/open-webui/commit/37b39706a6280606c22bb181aa1de03c27af14b4) Add SYSTEM_PROMPT_CALLING_TEMPLATE to app config - [`e0d5de1`](https://github.com/open-webui/open-webui/commit/e0d5de16978786b8a7538adf1efcde5258f38faf) Merge pull request #18978 from open-webui/dev - [`1d4fb10`](https://github.com/open-webui/open-webui/commit/1d4fb10e56785937bae0f94aa6411276fe6e3f17) Merge branch 'open-webui:main' into add-calling-system-prompt - [`a6aae06`](https://github.com/open-webui/open-webui/commit/a6aae06527b7a9caca96ec72b8f82f70ba232d75) Update tasks.py - [`8c66874`](https://github.com/open-webui/open-webui/commit/8c66874f30c91530c3b9018f5858a657979191bd) Refactor submit event handling in Chat.svelte - [`f0da757`](https://github.com/open-webui/open-webui/commit/f0da757c1d3dcd144611bc95dbcbb2ae92007baf) Update tasks.py ### 📊 Changes **6 files changed** (+78 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+12 -0) 📝 `backend/open_webui/main.py` (+3 -0) 📝 `backend/open_webui/routers/tasks.py` (+6 -0) 📝 `backend/open_webui/utils/chat.py` (+16 -1) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+18 -1) 📝 `src/lib/components/chat/Chat.svelte` (+23 -19) </details> ### 📄 Description # Pull Request Checklist - [X] **Target branch:** Verify that the pull request targets the `dev` branch. Not targeting the `dev` branch may lead to immediate closure of the PR. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description. - [X] **Agentic AI Code:**: Confirm this Pull Request is **not written by any AI Agent** or has at least gone through additional human review **and** manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - Adds a configurable system prompt for the CALLING feature in open webui, to ensure the models behave appropriate and answer only in short sentences etc. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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 2026-05-15 22:05:49 -05: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#95890