mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
fixed dict loading
This commit is contained in:
parent
0024d9d682
commit
57a98ba308
1 changed files with 6 additions and 0 deletions
|
@ -3659,6 +3659,12 @@ def main(launch_args,start_server=True):
|
||||||
canload = True
|
canload = True
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(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:
|
if canload:
|
||||||
print("Saved story preloaded.")
|
print("Saved story preloaded.")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue