You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: klite.embd
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -26069,22 +26069,22 @@ else
26069
26069
"name": "generate_image",
26070
26070
"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.",
26071
26071
"args": {
26072
+
"use_existing_image": {
26073
+
description: "<set this to true to use an existing image as a starting point. The user will select which image to use. (img2img)>",
26074
+
type: "boolean"
26075
+
},
26072
26076
"prompt": "<prompt to generate image with>",
26073
26077
"aspect": {
26074
26078
type: "string",
26075
26079
description: "<aspect ratio - must be \"landscape\", \"portrait\" or \"square\">"
26076
-
},
26077
-
"modify_existing_image": {
26078
-
description: "<set this to true to modify an existing image with the prompt>",
26079
-
type: "boolean"
26080
26080
}
26081
26081
},
26082
26082
"enabled": localsettings.generate_images_mode == 2, // Only enabled if local endpoint exists / is in use
26083
26083
"executor": async (action) => {
26084
26084
let prompt = action?.args?.prompt
26085
26085
let aspect = action?.args?.aspect
26086
26086
if (!!prompt) {
26087
-
if (!!action?.args?.modify_existing_image)
26087
+
if (!!action?.args?.use_existing_image)
26088
26088
{
26089
26089
waitingFori2iSelection = true
26090
26090
addThought(createSysPrompt, `Please click an image as a source for img2img generation`, true)
@@ -26669,7 +26669,9 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
26669
26669
}
26670
26670
26671
26671
let getLastActions = (amountOfActions = 10) => {
26672
-
let exclusions = ["Chain of thought repetition detected - ending", "Chain of thought complete", "plan_actions", "Action: {", "Action (words =", "Action taken: ", "Action taken (words ="] // "Action: {", "Action (words =", "Action taken: ", "Action taken (words ="
26672
+
let exclusions = ["Chain of thought repetition detected - ending", "Chain of thought complete", "plan_actions"]
0 commit comments