mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-26 01:08:52 +00:00
Config: Move config file generation to tabby_config
Keep the models as a separate reference file without any extra functions. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import json
|
||||
from loguru import logger
|
||||
|
||||
from common.config_models import generate_config_file
|
||||
from common.tabby_config import config
|
||||
from common.tabby_config import config, generate_config_file
|
||||
from endpoints.server import export_openapi
|
||||
|
||||
|
||||
@@ -18,10 +17,8 @@ def branch_to_actions() -> bool:
|
||||
"Successfully wrote OpenAPI spec to "
|
||||
+ f"{config.actions.openapi_export_path}"
|
||||
)
|
||||
|
||||
elif config.actions.export_config:
|
||||
generate_config_file(filename=config.actions.config_export_path)
|
||||
|
||||
else:
|
||||
# did not branch
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user