Custom Default System Prompt (#4487)

* Add Default System Prompt Management

- Introduced a new route for fetching and updating the default system prompt in the backend.
- Added a new Admin page for managing the default system prompt, including a form for editing and saving changes.
- Updated the SettingsSidebar to include a link to the new Default System Prompt page.
- Implemented fetching of available system prompt variables for use in the prompt editor.
- Enhanced the ChatSettings and ChatPromptSettings components to support the new default system prompt functionality.

This commit lays the groundwork for improved management of system prompts across workspaces.

* Remove validation for system prompt in ChatSettings component

* Add comment for system prompt in workspaces model

* linting, simplify logic for default assumption

* dev build

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
Marcello Fitton
2025-11-24 13:24:10 -08:00
committed by GitHub
parent de11a06622
commit 5716ac5ed5
15 changed files with 477 additions and 69 deletions

View File

@@ -6,7 +6,7 @@ concurrency:
on:
push:
branches: ['4595-refactor-pwa'] # put your current branch to create a build. Core team only.
branches: ['3906-global-default-system-prompt'] # put your current branch to create a build. Core team only.
paths-ignore:
- '**.md'
- 'cloud-deployments/*'