mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
Remove duplicate capability candidate sorting
This commit is contained in:
@@ -172,7 +172,7 @@ pub(crate) async fn list_selectable_candidates_for_required_capability_without_r
|
|||||||
let mut all_attempts_blocked_by_auth_limit = !model_names.is_empty();
|
let mut all_attempts_blocked_by_auth_limit = !model_names.is_empty();
|
||||||
|
|
||||||
for global_model_name in model_names {
|
for global_model_name in model_names {
|
||||||
let (mut candidates, skipped_candidates) = collect_selectable_candidates_with_skip_reasons(
|
let (candidates, skipped_candidates) = collect_selectable_candidates_with_skip_reasons(
|
||||||
selection_row_source,
|
selection_row_source,
|
||||||
runtime_state,
|
runtime_state,
|
||||||
&normalized_api_format,
|
&normalized_api_format,
|
||||||
@@ -201,9 +201,6 @@ pub(crate) async fn list_selectable_candidates_for_required_capability_without_r
|
|||||||
if candidates.is_empty() {
|
if candidates.is_empty() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
candidates.sort_by_key(|candidate| {
|
|
||||||
!candidate_supports_required_capability(candidate, required_capability)
|
|
||||||
});
|
|
||||||
return Ok((candidates, false));
|
return Ok((candidates, false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user