mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-03 23:25:21 +00:00
refac: do not check for empty keys
This commit is contained in:
parent
e3b1b717be
commit
ded22b3204
1 changed files with 1 additions and 3 deletions
|
|
@ -240,9 +240,7 @@ def merge_models_lists(model_lists):
|
|||
|
||||
|
||||
def is_openai_api_disabled():
|
||||
api_keys = app.state.config.OPENAI_API_KEYS
|
||||
no_keys = len(api_keys) == 1 and api_keys[0] == ""
|
||||
return no_keys or not app.state.config.ENABLE_OPENAI_API
|
||||
return not app.state.config.ENABLE_OPENAI_API
|
||||
|
||||
|
||||
async def get_all_models_raw() -> list:
|
||||
|
|
|
|||
Loading…
Reference in a new issue