mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
fixes
This commit is contained in:
parent
cda2138f24
commit
7ac3f9182b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue