feat: add claude-4 (#5829)

* feat: add claude-4

* fix: sorting order
This commit is contained in:
Louis 2025-07-21 12:30:56 +07:00 committed by GitHub
parent 81d6ed3785
commit 05b9d4e9fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
"remark-math": "^6.0.0",
"sonner": "^2.0.3",
"tailwindcss": "^4.1.4",
"token.js": "npm:token.js-fork@0.7.15",
"token.js": "npm:token.js-fork@0.7.16",
"tw-animate-css": "^1.2.7",
"ulidx": "^2.4.1",
"unified": "^11.0.5",

View File

@ -61,7 +61,6 @@ export const useModelProvider = create<ModelProviderState>()(
typeof (e.id ?? e.model) === 'string'
)
const mergedModels = [
...models,
...(provider?.models ?? []).filter(
(e) =>
('id' in e || 'model' in e) &&
@ -69,6 +68,7 @@ export const useModelProvider = create<ModelProviderState>()(
!models.some((m) => m.id === e.id) &&
!currentDeletedModels.includes(e.id)
),
...models,
]
return {
...provider,