Skip to content

Commit 4e13863

Browse files
author
prima
committed
fix: Fixed some loading issues and improved prompting with the new changes
1 parent 8095657 commit 4e13863

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

klite.embd

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,6 +3412,7 @@ Current version indicated by LITEVER below.
34123412
let placeholders = !!instructstartplaceholder && !!instructstartplaceholder_end && !!instructsysplaceholder && !!instructsysplaceholder_end && !!instructendplaceholder && !!instructendplaceholder_end
34133413
let tags = !!localsettings.instruct_starttag && !!localsettings.instruct_endtag && !!localsettings.instruct_systag
34143414
&& !!localsettings.instruct_starttag_end && !!localsettings.instruct_endtag_end && !!localsettings.instruct_systag_end
3415+
&& !!get_instruct_systag(false) && !!get_instruct_systag(true)
34153416
return placeholders && tags
34163417
}
34173418

@@ -25585,7 +25586,7 @@ else
2558525586
"selective": false,
2558625587
"constant": false,
2558725588
"probability": "100",
25588-
"wigroup": "",
25589+
"wigroup": "Agent",
2558925590
"widisabled": false
2559025591
}
2559125592
current_wi = current_wi.filter(wi => wi?.comment !== uniqueIdentifier)
@@ -26001,15 +26002,15 @@ else
2600126002
},
2600226003
{
2600326004
"name": "generate_image",
26004-
"description": "Generates an image using AI based on a prompt. Be specific in the prompt about physical characteristics and settings as names of people may not be known.",
26005+
"description": "Generates or modifies an image using AI based on a prompt. Be specific in the prompt about physical characteristics and settings as names of people may not be known.",
2600526006
"args": {
2600626007
"prompt": "<prompt to generate image with>",
2600726008
"aspect": {
2600826009
type: "string",
2600926010
description: "<aspect ratio - must be \"landscape\", \"portrait\" or \"square\">"
2601026011
},
26011-
"use_another_image_as_source": {
26012-
description: "<if the user wished to generate a new image based on one they provide, set this to true>",
26012+
"modify_existing_image": {
26013+
description: "<set this to true to modify an existing image with the prompt>",
2601326014
type: "boolean"
2601426015
}
2601526016
},
@@ -26018,7 +26019,7 @@ else
2601826019
let prompt = action?.args?.prompt
2601926020
let aspect = action?.args?.aspect
2602026021
if (!!prompt) {
26021-
if (!!action?.args?.use_another_image_as_source)
26022+
if (!!action?.args?.modify_existing_image)
2602226023
{
2602326024
waitingFori2iSelection = true
2602426025
addThought(createSysPrompt, `Please click an image as a source for img2img generation`, true)
@@ -26135,8 +26136,12 @@ else
2613526136
return [
2613626137
{
2613726138
"name": "plan_actions",
26138-
"description": "Defines a list of actions to respond to a user instruction",
26139+
"description": "Defines a list of actions to respond to a user instruction.",
2613926140
"args": {
26141+
"responsePlanOverview": {
26142+
type: "string",
26143+
description: "<short overview of what the user asked for, planned actions and why the order makes sense - this must be specific to the last user instruction>"
26144+
},
2614026145
"orderOfActions": {
2614126146
type: "array",
2614226147
description: "<array of actions needed to complete the instruction and their objectives>",

0 commit comments

Comments
 (0)