chore(agent): clarify light routing log fields
This commit is contained in:
parent
277b1c8c26
commit
700853eb0d
1 changed files with 12 additions and 9 deletions
|
|
@ -1350,17 +1350,20 @@ func (al *AgentLoop) selectCandidates(
|
||||||
return agent.Candidates, agent.Model
|
return agent.Candidates, agent.Model
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configuredAlias := agent.Router.LightModel()
|
||||||
|
resolvedModel := configuredAlias
|
||||||
|
if strings.TrimSpace(agent.LightCandidates[0].Model) != "" {
|
||||||
|
resolvedModel = agent.LightCandidates[0].Model
|
||||||
|
}
|
||||||
|
|
||||||
logger.InfoCF("agent", "Model routing: light model selected",
|
logger.InfoCF("agent", "Model routing: light model selected",
|
||||||
map[string]any{
|
map[string]any{
|
||||||
"agent_id": agent.ID,
|
"agent_id": agent.ID,
|
||||||
"light_model": agent.Router.LightModel(),
|
"light_model_alias": configuredAlias,
|
||||||
|
"resolved_light_model": resolvedModel,
|
||||||
"score": score,
|
"score": score,
|
||||||
"threshold": agent.Router.Threshold(),
|
"threshold": agent.Router.Threshold(),
|
||||||
})
|
})
|
||||||
resolvedModel := agent.Router.LightModel()
|
|
||||||
if len(agent.LightCandidates) > 0 && strings.TrimSpace(agent.LightCandidates[0].Model) != "" {
|
|
||||||
resolvedModel = agent.LightCandidates[0].Model
|
|
||||||
}
|
|
||||||
return agent.LightCandidates, resolvedModel
|
return agent.LightCandidates, resolvedModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue