test(agent): align historical-image selection assertion with merged signature
This commit is contained in:
parent
fd40b3df17
commit
592e2adc8d
1 changed files with 4 additions and 1 deletions
|
|
@ -526,7 +526,7 @@ func TestSelectCandidates_DoesNotUseImageModelForHistoricalImages(t *testing.T)
|
||||||
}
|
}
|
||||||
|
|
||||||
agent := NewAgentInstance(nil, &cfg.Agents.Defaults, cfg, &mockProvider{})
|
agent := NewAgentInstance(nil, &cfg.Agents.Defaults, cfg, &mockProvider{})
|
||||||
candidates, model, useImageFallback := (&AgentLoop{}).selectCandidates(
|
candidates, model, usedLight, useImageFallback := (&AgentLoop{}).selectCandidates(
|
||||||
agent,
|
agent,
|
||||||
"text-only follow-up",
|
"text-only follow-up",
|
||||||
[]providers.Message{
|
[]providers.Message{
|
||||||
|
|
@ -537,6 +537,9 @@ func TestSelectCandidates_DoesNotUseImageModelForHistoricalImages(t *testing.T)
|
||||||
nil,
|
nil,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if usedLight {
|
||||||
|
t.Fatal("did not expect light-model routing for text-only current turn")
|
||||||
|
}
|
||||||
if useImageFallback {
|
if useImageFallback {
|
||||||
t.Fatal("expected image fallback to be disabled for text-only current turn")
|
t.Fatal("expected image fallback to be disabled for text-only current turn")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue