System prompt: build from agent persona/instructions, store in chain, remove UI textarea
This commit is contained in:
1 parent
a90b9427a5
commit
002ef293f0
6 files changed
+17
-39
No files matched your search
+2
-2
@@ -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 })
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user