Skip to content

Commit ef14ab8

Browse files
committed
fix(models): narrow structured output ranking signal
Made-with: Cursor
1 parent e935e29 commit ef14ab8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/sim/app/(landing)/models/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ export function formatCapabilityBoolean(
191191
}
192192

193193
function supportsCatalogStructuredOutputs(capabilities: ModelCapabilities): boolean {
194-
// In the catalog, "structured outputs" means Sim can return typed JSON for the model.
195-
// `nativeStructuredOutputs` is narrower and only indicates provider-native schema support.
196194
return !capabilities.deepResearch
197195
}
198196

@@ -394,7 +392,7 @@ function buildBestForLine(model: {
394392
return 'Best for long-context retrieval, large documents, and high-memory workflows.'
395393
}
396394

397-
if (supportsCatalogStructuredOutputs(capabilities)) {
395+
if (capabilities.nativeStructuredOutputs) {
398396
return 'Best for production workflows that need reliable typed outputs.'
399397
}
400398

@@ -429,7 +427,7 @@ function computeModelRelevanceScore(model: CatalogModel): number {
429427
(model.capabilities.reasoningEffort ? 10 : 0) +
430428
(model.capabilities.thinking ? 10 : 0) +
431429
(model.capabilities.deepResearch ? 8 : 0) +
432-
(supportsCatalogStructuredOutputs(model.capabilities) ? 4 : 0) +
430+
(model.capabilities.nativeStructuredOutputs ? 4 : 0) +
433431
(model.contextWindow ?? 0) / 100000
434432
)
435433
}

0 commit comments

Comments
 (0)