mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
fix: filter candidate rows to resolved global model name only
This commit is contained in:
@@ -152,7 +152,7 @@ async fn enumerate_minimal_candidate_selection_resolves_provider_model_alias() {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn enumerate_minimal_candidate_selection_keeps_all_rows_supporting_requested_model() {
|
||||
async fn enumerate_minimal_candidate_selection_keeps_only_resolved_global_model_rows() {
|
||||
let mut exact = sample_row();
|
||||
exact.provider_id = "provider-exact".to_string();
|
||||
exact.endpoint_id = "endpoint-exact".to_string();
|
||||
@@ -199,11 +199,8 @@ async fn enumerate_minimal_candidate_selection_keeps_all_rows_supporting_request
|
||||
.iter()
|
||||
.map(|candidate| candidate.provider_id.as_str())
|
||||
.collect::<Vec<_>>();
|
||||
assert_eq!(provider_ids, vec!["provider-exact", "provider-mapped"]);
|
||||
assert_eq!(
|
||||
selection[1].selected_provider_model_name,
|
||||
"claude-sonnet-upstream"
|
||||
);
|
||||
assert_eq!(provider_ids, vec!["provider-exact"]);
|
||||
assert_eq!(selection[0].selected_provider_model_name, "gpt-5");
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user