mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 15:44:56 +00:00
sync
This commit is contained in:
@@ -45,6 +45,7 @@ const getModelsInfo = query(async (workspaceID: string) => {
|
||||
all: Object.entries(ZenData.list("full").models)
|
||||
.filter(([id, _model]) => !["claude-3-5-haiku"].includes(id))
|
||||
.filter(([id, _model]) => !id.startsWith("alpha-"))
|
||||
.filter(([id, _model]) => !id.endsWith(":global"))
|
||||
.sort(([idA, modelA], [idB, modelB]) => {
|
||||
const priority = ["big-pickle", "minimax", "grok", "claude", "gpt", "gemini"]
|
||||
const getPriority = (id: string) => {
|
||||
|
||||
@@ -28,7 +28,9 @@ export async function GET(input: APIEvent) {
|
||||
)
|
||||
})()
|
||||
|
||||
const models = Object.keys(ZenData.list("full").models).filter((id) => !disabledModels.includes(id))
|
||||
const models = Object.keys(ZenData.list("full").models)
|
||||
.filter((id) => !id.endsWith(":global"))
|
||||
.filter((id) => !disabledModels.includes(id))
|
||||
|
||||
return buildModelsResponse(models)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user