System prompt: build from agent persona/instructions, store in chain, remove UI textarea

This commit is contained in:
Meleki committed 2026-02-26 21:42:32 +01:00
1 parent a90b9427a5
commit 002ef293f0
6 files changed
+17 -39

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
// ── API Calls ──
async function apiChat(messages, systemPrompt, sessionId) {
async function apiChat(messages, sessionId) {
return fetch('/api/chat', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ messages, systemPrompt, sessionId })
body: JSON.stringify({ messages, sessionId })
});
}