merlyn/server
Marcello Fitton 96bf127696
New Default System Prompt Variables (User ID, Workspace ID, & Workspace Name) (#4414)
* Fix system prompt variable color logic by removing unused variable type from switch statement and adding new types.

* Add workspace id, name and user id as default system prompt variables

* Combine user and workspace  variable evaluations into a single if statment, reducing redundant code.

* minor refactor

* add systemPromptVariable expandSystemPromptVariables test cases

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
2025-09-29 14:32:56 -07:00
..
__tests__ New Default System Prompt Variables (User ID, Workspace ID, & Workspace Name) (#4414) 2025-09-29 14:32:56 -07:00
endpoints Add User-Agent header on the requests sent by Generic OpenAI providers. (#4393) 2025-09-17 13:08:18 -07:00
jobs Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
middleware Add HTTP request/response logging middleware for development mode (#4425) 2025-09-29 13:33:15 -07:00
models New Default System Prompt Variables (User ID, Workspace ID, & Workspace Name) (#4414) 2025-09-29 14:32:56 -07:00
prisma Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
storage feat: Implement CometAPI integration for chat completions and model m… (#4379) 2025-09-16 14:38:49 -07:00
swagger patch folder name GET request response (#4395) 2025-09-17 13:05:11 -07:00
utils New Default System Prompt Variables (User ID, Workspace ID, & Workspace Name) (#4414) 2025-09-29 14:32:56 -07:00
.env.example Add HTTP request/response logging middleware for development mode (#4425) 2025-09-29 13:33:15 -07:00
.flowconfig devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
.gitignore Workspace Chat with documents overhaul (#4261) 2025-08-11 09:26:19 -07:00
.nvmrc Implement Chroma Support (#1) 2023-06-07 21:31:35 -07:00
index.js Add HTTP request/response logging middleware for development mode (#4425) 2025-09-29 13:33:15 -07:00
jsconfig.json devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
nodemon.json Full developer api (#221) 2023-08-23 19:15:07 -07:00
package.json forgot 1.8.5 tag :) 2025-08-14 17:43:55 -07:00
yarn.lock Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00