mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-27 09:41:54 +00:00
Config: Fix draft model migration and loading
The loader takes in the "draft" parameter, so map the config model to that when creating kwargs for initial load. Also map the old "draft" key to the new "draft_model" key. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -72,7 +72,7 @@ class TabbyConfig(TabbyConfigModel):
|
||||
|
||||
if model_cfg.get("draft"):
|
||||
legacy = True
|
||||
cfg["draft"] = model_cfg["draft"]
|
||||
cfg["draft_model"] = model_cfg["draft"]
|
||||
|
||||
if model_cfg.get("lora"):
|
||||
legacy = True
|
||||
|
||||
Reference in New Issue
Block a user