Main: Make openapi export store locally
This runs faster than always making a syscall to check if the env var is set. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
ae66e8f9ba
commit
6613e38436
3 changed files with 9 additions and 2 deletions
|
|
@ -12,8 +12,9 @@ from typing import Optional
|
|||
from common import config
|
||||
from common.logger import get_loading_progress_bar
|
||||
from common.utils import unwrap
|
||||
from endpoints.utils import do_export_openapi
|
||||
|
||||
if os.getenv("EXPORT_OPENAPI", "").lower() not in ("true", "1"):
|
||||
if not do_export_openapi:
|
||||
from backends.exllamav2.model import ExllamaV2Container
|
||||
|
||||
# Global model container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue