fixes
parent
cda2138f24
commit
7ac3f9182b
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue