Skip to content

Commit

Permalink
fixed missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Feb 9, 2025
1 parent ed8b881 commit 076e61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4685,7 +4685,7 @@ def tunnel_reader():
found = re.findall(pattern, line)
for x in found:
tunneloutput = x
if global_memory["load_complete"]:
if global_memory and global_memory["load_complete"]:
print(f"Your remote Kobold API can be found at {tunneloutput}/api")
print(f"Your remote OpenAI Compatible API can be found at {tunneloutput}/v1")
if has_sd:
Expand Down Expand Up @@ -5012,7 +5012,7 @@ def main(launch_args):

if not args.admin: #run in single process mode
if args.remotetunnel and not args.prompt and not args.benchmark:
setuptunnel(None, True if args.sdmodel else False)
setuptunnel(global_memory, True if args.sdmodel else False)
kcpp_main_process(args,global_memory,using_gui_launcher)
if global_memory["input_to_exit"]:
print("===")
Expand Down

0 comments on commit 076e61e

Please sign in to comment.