MCPcopy Index your code
hub / github.com/anomalyco/models.dev / modalitySummary

Function modalitySummary

packages/web/src/render.tsx:606–610  ·  view source on GitHub ↗
(input?: string[], output?: string[])

Source from the content-addressed store, hash-verified

604}
605
606function modalitySummary(input?: string[], output?: string[]) {
607 const inputText = input && input.length > 0 ? `input: ${input.join(", ")}` : undefined;
608 const outputText = output && output.length > 0 ? `output: ${output.join(", ")}` : undefined;
609 return sentenceList([inputText, outputText]);
610}
611
612function plural(count: number, singular: string, pluralForm = `${singular}s`) {
613 return `${count} ${count === 1 ? singular : pluralForm}`;

Callers 1

modelPageMetadataFunction · 0.85

Calls 1

sentenceListFunction · 0.85

Tested by

no test coverage detected