Skip to content

Commit 076e61e

Browse files
committed
fixed missing param
1 parent ed8b881 commit 076e61e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: koboldcpp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4685,7 +4685,7 @@ def tunnel_reader():
46854685
found = re.findall(pattern, line)
46864686
for x in found:
46874687
tunneloutput = x
4688-
if global_memory["load_complete"]:
4688+
if global_memory and global_memory["load_complete"]:
46894689
print(f"Your remote Kobold API can be found at {tunneloutput}/api")
46904690
print(f"Your remote OpenAI Compatible API can be found at {tunneloutput}/v1")
46914691
if has_sd:
@@ -5012,7 +5012,7 @@ def main(launch_args):
50125012

50135013
if not args.admin: #run in single process mode
50145014
if args.remotetunnel and not args.prompt and not args.benchmark:
5015-
setuptunnel(None, True if args.sdmodel else False)
5015+
setuptunnel(global_memory, True if args.sdmodel else False)
50165016
kcpp_main_process(args,global_memory,using_gui_launcher)
50175017
if global_memory["input_to_exit"]:
50185018
print("===")

0 commit comments

Comments
 (0)