Skip to content

Commit

Permalink
fixed dict loading
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Jul 25, 2024
1 parent 0024d9d commit 57a98ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3659,6 +3659,12 @@ def main(launch_args,start_server=True):
canload = True
except Exception as ex:
print(ex)
elif isinstance(args.preloadstory, dict):
try:
preloaded_story = json.dumps(args.preloadstory).encode()
canload = True
except Exception as ex:
print(ex)
if canload:
print("Saved story preloaded.")
else:
Expand Down

0 comments on commit 57a98ba

Please sign in to comment.