mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
add error message for invalid use_as_default
This commit is contained in:
@@ -39,8 +39,9 @@ class TabbyConfig(TabbyConfigModel):
|
||||
elif hasattr(self.draft_model, field):
|
||||
self.model_defaults[field] = getattr(config.draft_model, field)
|
||||
else:
|
||||
# TODO: show an error
|
||||
pass
|
||||
logger.error(
|
||||
f"invalid item {field} in config option `model.use_as_default`"
|
||||
)
|
||||
|
||||
def _from_file(self, config_path: pathlib.Path):
|
||||
"""loads config from a given file path"""
|
||||
|
||||
Reference in New Issue
Block a user