From b6d16a35b1b665ba3b8e93ceb7c6ee55cc454598 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:56:28 -0800 Subject: [PATCH] Minor API fix --- extensions/openai/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/openai/script.py b/extensions/openai/script.py index 047c339a..1958c30f 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -364,7 +364,7 @@ def run_server(): logger.info(f'OpenAI API key:\n\n{shared.args.api_key}\n') - if shared.args.admin_key: + if shared.args.admin_key and shared.args.admin_key != shared.args.api_key: logger.info(f'OpenAI API admin key (for loading/unloading models):\n\n{shared.args.admin_key}\n') uvicorn.run(app, host=server_addr, port=port, ssl_certfile=ssl_certfile, ssl_keyfile=ssl_keyfile)