feat(api): route the npc role to its own model

This commit is contained in:
2026-07-10 12:11:54 -05:00
parent 69729f7673
commit 6cd5003930
3 changed files with 18 additions and 0 deletions

View File

@@ -22,4 +22,10 @@ def for_role(role: str) -> RoleConfig:
options={"temperature": 0.8, "top_p": 0.9, "num_predict": 300},
think=False, # qwen3.x thinking OFF; harmless on non-thinking models
)
if role == "npc":
return RoleConfig(
model=config.npc_model(),
options={"temperature": 0.8, "top_p": 0.9, "num_predict": 320},
think=False,
)
raise KeyError(f"no routing for role: {role}")