2026-04-03 19:38:26 +09:00
|
|
|
import bundledModelCapabilitiesSnapshotJson from "../../generated/model-capabilities.generated.json"
|
|
|
|
|
|
2026-04-21 13:29:49 +09:00
|
|
|
import { SUPPLEMENTAL_MODEL_CAPABILITIES } from "./supplemental-entries"
|
2026-04-03 19:38:26 +09:00
|
|
|
import type { ModelCapabilitiesSnapshot } from "./types"
|
|
|
|
|
|
|
|
|
|
function normalizeSnapshot(
|
|
|
|
|
snapshot: ModelCapabilitiesSnapshot | typeof bundledModelCapabilitiesSnapshotJson,
|
|
|
|
|
): ModelCapabilitiesSnapshot {
|
|
|
|
|
return snapshot as ModelCapabilitiesSnapshot
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-21 13:29:49 +09:00
|
|
|
const normalizedBundledSnapshot = normalizeSnapshot(bundledModelCapabilitiesSnapshotJson)
|
|
|
|
|
|
|
|
|
|
const bundledModelCapabilitiesSnapshot: ModelCapabilitiesSnapshot = {
|
|
|
|
|
...normalizedBundledSnapshot,
|
|
|
|
|
models: {
|
|
|
|
|
...normalizedBundledSnapshot.models,
|
|
|
|
|
...SUPPLEMENTAL_MODEL_CAPABILITIES,
|
|
|
|
|
},
|
|
|
|
|
}
|
2026-04-03 19:38:26 +09:00
|
|
|
|
|
|
|
|
export function getBundledModelCapabilitiesSnapshot(): ModelCapabilitiesSnapshot {
|
|
|
|
|
return bundledModelCapabilitiesSnapshot
|
|
|
|
|
}
|