pull/5298/head
Aiden Cline 2025-12-09 16:23:18 -06:00
parent cda2138f24
commit 7ac3f9182b
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ export namespace Provider {
}
const priority = ["gpt-5", "claude-sonnet-4", "big-pickle", "gemini-3-pro"]
export function sort(models: Model[]) {
export function sort<T extends { id: string }>(models: T[]) {
return sortBy(
models,
[(model) => priority.findIndex((filter) => model.id.includes(filter)), "desc"],