mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-26 00:17:41 +01:00
bugfix for metadata saving
This commit is contained in:
parent
9355ae420d
commit
f54f46b068
@ -2458,7 +2458,7 @@ def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False,
|
|||||||
# we now need to update the actions_metadata
|
# we now need to update the actions_metadata
|
||||||
# we'll have two conditions.
|
# we'll have two conditions.
|
||||||
# 1. This is totally new (user entered)
|
# 1. This is totally new (user entered)
|
||||||
if len(vars.actions_metadata) < len(vars.actions):
|
if len(vars.actions_metadata) <= len(vars.actions):
|
||||||
vars.actions_metadata.append({"Selected Text": data, "Alternative Text": []})
|
vars.actions_metadata.append({"Selected Text": data, "Alternative Text": []})
|
||||||
else:
|
else:
|
||||||
# 2. We've selected a chunk of text that is was presented previously
|
# 2. We've selected a chunk of text that is was presented previously
|
||||||
|
Loading…
x
Reference in New Issue
Block a user