fix(model-capabilities): bundle gpt-5.4-mini-fast caps
Keep the supplemental OpenAI model available when the bundled snapshot omits it.\nMerge its capabilities at runtime so downstream model resolution can use it. Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import bundledModelCapabilitiesSnapshotJson from "../../generated/model-capabilities.generated.json"
|
import bundledModelCapabilitiesSnapshotJson from "../../generated/model-capabilities.generated.json"
|
||||||
|
|
||||||
|
import { SUPPLEMENTAL_MODEL_CAPABILITIES } from "./supplemental-entries"
|
||||||
import type { ModelCapabilitiesSnapshot } from "./types"
|
import type { ModelCapabilitiesSnapshot } from "./types"
|
||||||
|
|
||||||
function normalizeSnapshot(
|
function normalizeSnapshot(
|
||||||
@@ -8,7 +9,15 @@ function normalizeSnapshot(
|
|||||||
return snapshot as ModelCapabilitiesSnapshot
|
return snapshot as ModelCapabilitiesSnapshot
|
||||||
}
|
}
|
||||||
|
|
||||||
const bundledModelCapabilitiesSnapshot = normalizeSnapshot(bundledModelCapabilitiesSnapshotJson)
|
const normalizedBundledSnapshot = normalizeSnapshot(bundledModelCapabilitiesSnapshotJson)
|
||||||
|
|
||||||
|
const bundledModelCapabilitiesSnapshot: ModelCapabilitiesSnapshot = {
|
||||||
|
...normalizedBundledSnapshot,
|
||||||
|
models: {
|
||||||
|
...normalizedBundledSnapshot.models,
|
||||||
|
...SUPPLEMENTAL_MODEL_CAPABILITIES,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
export function getBundledModelCapabilitiesSnapshot(): ModelCapabilitiesSnapshot {
|
export function getBundledModelCapabilitiesSnapshot(): ModelCapabilitiesSnapshot {
|
||||||
return bundledModelCapabilitiesSnapshot
|
return bundledModelCapabilitiesSnapshot
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import type { ModelCapabilitiesSnapshotEntry } from "./types"
|
||||||
|
|
||||||
|
export const SUPPLEMENTAL_MODEL_CAPABILITIES: Record<string, ModelCapabilitiesSnapshotEntry> = {
|
||||||
|
"gpt-5.4-mini-fast": {
|
||||||
|
id: "gpt-5.4-mini-fast",
|
||||||
|
family: "gpt-mini",
|
||||||
|
reasoning: true,
|
||||||
|
temperature: false,
|
||||||
|
toolCall: true,
|
||||||
|
modalities: {
|
||||||
|
input: ["text", "image", "pdf"],
|
||||||
|
output: ["text"],
|
||||||
|
},
|
||||||
|
limit: {
|
||||||
|
context: 400000,
|
||||||
|
input: 272000,
|
||||||
|
output: 128000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user