Windows doesn't like : in filenames
This commit is contained in:
parent
b4fc8dfa8f
commit
2207d44986
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ if args.chat or args.cai_chat:
|
||||||
return _history
|
return _history
|
||||||
|
|
||||||
def save_history():
|
def save_history():
|
||||||
fname = f"{character or ''}{'_' if character else ''}{datetime.now().strftime('%Y%m%d-%H:%M:%S')}.json"
|
fname = f"{character or ''}{'_' if character else ''}{datetime.now().strftime('%Y%m%d-%H%M%S')}.json"
|
||||||
if not Path('logs').exists():
|
if not Path('logs').exists():
|
||||||
Path('logs').mkdir()
|
Path('logs').mkdir()
|
||||||
with open(Path(f'logs/{fname}'), 'w') as f:
|
with open(Path(f'logs/{fname}'), 'w') as f:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue