Skip to content

Commit cbd1069

Browse files
committed
Devin fixes
1 parent f0b4276 commit cbd1069

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

apps/webapp/app/presenters/v3/ModelRegistryPresenter.server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ function buildFeatures(
100100
capabilities: string[],
101101
catalogEntry: { supportsStructuredOutput: boolean; supportsParallelToolCalls: boolean; supportsStreamingToolCalls: boolean } | undefined
102102
): string[] {
103-
const features = [...capabilities];
104-
if (catalogEntry?.supportsStructuredOutput) features.push("structured_output");
105-
if (catalogEntry?.supportsParallelToolCalls) features.push("parallel_tool_calls");
106-
if (catalogEntry?.supportsStreamingToolCalls) features.push("streaming_tool_calls");
107-
return features;
103+
const features = new Set(capabilities);
104+
if (catalogEntry?.supportsStructuredOutput) features.add("structured_output");
105+
if (catalogEntry?.supportsParallelToolCalls) features.add("parallel_tool_calls");
106+
if (catalogEntry?.supportsStreamingToolCalls) features.add("streaming_tool_calls");
107+
return Array.from(features);
108108
}
109109

110110
export type ModelMetricsPoint = {

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models._index/route.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,22 +479,22 @@ function buildComparisonRows(
479479
},
480480
{
481481
label: "Input $/1M",
482-
values: inputPrices.map((v) => formatModelPrice(v)),
482+
values: models.map((m) => formatModelPrice(getCatalog(m)?.inputPrice ?? null)),
483483
bestIndex: findBest(inputPrices, true),
484484
},
485485
{
486486
label: "Output $/1M",
487-
values: outputPrices.map((v) => formatModelPrice(v)),
487+
values: models.map((m) => formatModelPrice(getCatalog(m)?.outputPrice ?? null)),
488488
bestIndex: findBest(outputPrices, true),
489489
},
490490
{
491491
label: "Context window",
492-
values: contextWindows.map((v) => formatTokenCount(v)),
492+
values: models.map((m) => formatTokenCount(getCatalog(m)?.contextWindow ?? null)),
493493
bestIndex: findBest(contextWindows, false),
494494
},
495495
{
496496
label: "Max output",
497-
values: maxOutputs.map((v) => formatTokenCount(v)),
497+
values: models.map((m) => formatTokenCount(getCatalog(m)?.maxOutputTokens ?? null)),
498498
bestIndex: findBest(maxOutputs, false),
499499
},
500500
{
@@ -576,6 +576,7 @@ function CompareDialog({
576576
[comparison, models, catalogModels]
577577
);
578578

579+
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally only fires on open; other deps are stable per dialog mount
579580
useEffect(() => {
580581
if (open && models.length >= 2) {
581582
const params = models.join(",");

0 commit comments

Comments
 (0)