mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Include koboldai_vars.save_story().
This commit is contained in:
@@ -7273,7 +7273,7 @@ def save():
|
||||
save_name = koboldai_vars.story_name if koboldai_vars.story_name != "" else "untitled"
|
||||
same_story = True
|
||||
if os.path.exists("stories/{}".format(save_name)):
|
||||
with open("stories/{}/story.json".format(save_name), "r") as settings_file:
|
||||
with open("stories/{}/story.json".format(save_name), "r", encoding="utf-8") as settings_file:
|
||||
json_data = json.load(settings_file)
|
||||
if 'story_id' in json_data:
|
||||
same_story = json_data['story_id'] == koboldai_vars.story_id
|
||||
|
Reference in New Issue
Block a user