mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Added ability to use env variables instead of argparse (command argument = docker env variable)
This commit is contained in:
@@ -908,6 +908,11 @@ def general_startup(override_args=None):
|
||||
else:
|
||||
args = parser.parse_args()
|
||||
|
||||
for arg in vars(args):
|
||||
if arg in os.environ:
|
||||
setattr(args, arg, os.environ[arg])
|
||||
|
||||
|
||||
koboldai_vars.model = args.model;
|
||||
koboldai_vars.revision = args.revision
|
||||
|
||||
|
Reference in New Issue
Block a user