We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46122d9 commit d005e70Copy full SHA for d005e70
1 file changed
packages/opencode/src/provider/models.ts
@@ -87,7 +87,7 @@ export namespace ModelsDev {
87
export const Data = lazy(async () => {
88
const file = Bun.file(filepath)
89
const result = await file.json().catch(() => {})
90
- if (result) return result
+ if (result && typeof result === "object" && Object.keys(result).length > 0) return result
91
// @ts-ignore
92
const snapshot = await import("./models-snapshot")
93
.then((m) => m.snapshot as Record<string, unknown>)
0 commit comments