When setting --model, set all subagents as well
This commit is contained in:
parent
aa4ce07dc9
commit
cf89ff55cd
1 changed files with 7 additions and 1 deletions
|
|
@ -26,13 +26,19 @@ def run_chat(
|
||||||
) from e
|
) from e
|
||||||
|
|
||||||
from haiku.rag.config import get_config
|
from haiku.rag.config import get_config
|
||||||
from haiku.rag.utils import get_model
|
from haiku.rag.utils import get_model, parse_model_option
|
||||||
from haiku.skills.models import Skill
|
from haiku.skills.models import Skill
|
||||||
|
|
||||||
config = get_config()
|
config = get_config()
|
||||||
if db_path is None:
|
if db_path is None:
|
||||||
db_path = config.storage.data_dir / "haiku.rag.lancedb"
|
db_path = config.storage.data_dir / "haiku.rag.lancedb"
|
||||||
|
|
||||||
|
if model:
|
||||||
|
model_config = parse_model_option(model)
|
||||||
|
config.qa.model = model_config
|
||||||
|
config.research.model = model_config
|
||||||
|
config.analysis.model = model_config
|
||||||
|
|
||||||
enabled = skills or ["rag"]
|
enabled = skills or ["rag"]
|
||||||
skill_list: list[Skill] = []
|
skill_list: list[Skill] = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue