mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-26 07:14:39 +01:00
API: Handle --extensions openai as alias for --api
This commit is contained in:
parent
1a910574c3
commit
855141967c
|
|
@ -288,6 +288,11 @@ if __name__ == "__main__":
|
|||
if extension not in shared.args.extensions:
|
||||
shared.args.extensions.append(extension)
|
||||
|
||||
# Handle --extensions openai from the command line (moved to modules/api)
|
||||
if shared.args.extensions and 'openai' in shared.args.extensions:
|
||||
shared.args.extensions.remove('openai')
|
||||
shared.args.api = True
|
||||
|
||||
# Load image model if specified via CLI
|
||||
if shared.args.image_model:
|
||||
logger.info(f"Loading image model: {shared.args.image_model}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue