Skip to content

Commit ee874c2

Browse files
author
prima
committed
fix: Added some tweaks to the automatic system prompt to try and improve response consistency with default configs
1 parent 6a3ee7a commit ee874c2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

klite.embd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26787,7 +26787,19 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
2678726787
let state = getDocumentFromTextDB('State')
2678826788
let prompt = []
2678926789

26790-
let sysPrompt = !!localsettings.instruct_sysprompt ? `${localsettings.instruct_sysprompt}` : `You are a decision making action AI that evaluates thoughts and takes concise, purposeful actions which lead to a response to the user.`
26790+
let sysPrompt;
26791+
if (!!localsettings.instruct_sysprompt)
26792+
{
26793+
sysPrompt = localsettings.instruct_sysprompt
26794+
}
26795+
else
26796+
{
26797+
sysPrompt = `You are a decision making action AI that evaluates thoughts and takes concise, purposeful actions which lead to a response to the user. Ensure you always send at least one response which is visible to the user.`
26798+
if (current_memory.length > 0)
26799+
{
26800+
sysPrompt += " Ensure responses are in line with the setting overview. Only override the setting overview when the user explicitly instructs you to do so."
26801+
}
26802+
}
2679126803
if (state != null)
2679226804
{
2679326805
prompt.push(`Current state: ${state}`)

0 commit comments

Comments
 (0)