Commit 31f1cbd
committed
Prepend system message from settings to API payload
Add the system message (if configured and non‑empty) to the beginning of
the JSON array that is sent to the LlamaCPP server.
The new entry uses the role "system" and contains the configured text.
This ensures the server receives the system context before any user
messages, improving generation behaviour without changing the existing
message flow.1 parent fb8ae0e commit 31f1cbd
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
546 | 555 | | |
547 | 556 | | |
548 | 557 | | |
| |||
0 commit comments