mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 07:03:37 +00:00
API: Move OpenAI-compatible API from extensions/openai to modules/api
This commit is contained in:
parent
2e4232e02b
commit
bf6fbc019d
23 changed files with 51 additions and 65 deletions
|
|
@ -95,8 +95,6 @@ def set_interface_arguments(extensions, bool_active):
|
|||
setattr(shared.args, k, False)
|
||||
for k in bool_active:
|
||||
setattr(shared.args, k, True)
|
||||
if k == 'api':
|
||||
shared.add_extension('openai', last=True)
|
||||
|
||||
shared.need_restart = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue