mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user