mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
loop: model-fallback-fix completed after 3 iterations
This commit is contained in:
1 parent
9ffd6d6e6f
commit
8437efe16d
2 files changed
+84
-19
No files matched your search
@@ -111,25 +111,6 @@ export async function resolveOpenCodeModel(
|
||||
return parsedCandidate
|
||||
}
|
||||
}
|
||||
|
||||
const parsedCandidate = parseModel(candidate)
|
||||
if (!parsedCandidate) {
|
||||
continue
|
||||
}
|
||||
|
||||
const providerDefaultModel = defaultModels[parsedCandidate.providerID]
|
||||
if (!providerDefaultModel) {
|
||||
continue
|
||||
}
|
||||
|
||||
const providerDefault = `${parsedCandidate.providerID}/${providerDefaultModel}`
|
||||
if (availableModels.has(providerDefault)) {
|
||||
return {
|
||||
providerID: parsedCandidate.providerID,
|
||||
modelID: providerDefaultModel,
|
||||
model: providerDefault,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const [providerID, modelID] of Object.entries(defaultModels)) {
|
||||
|
||||
Reference in new issue
Block a user