MCPcopy Create free account
hub / github.com/simstudioai/sim / formatCapabilityBoolean

Function formatCapabilityBoolean

apps/sim/app/(landing)/models/utils.ts:201–212  ·  view source on GitHub ↗
(
  value: boolean | undefined,
  {
    positive = 'Supported',
    negative = 'Not supported',
  }: {
    positive?: string
    negative?: string
  } = {}
)

Source from the content-addressed store, hash-verified

199}
200
201export function formatCapabilityBoolean(
202 value: boolean | undefined,
203 {
204 positive = 'Supported',
205 negative = 'Not supported',
206 }: {
207 positive?: string
208 negative?: string
209 } = {}
210): string {
211 return value ? positive : negative
212}
213
214function supportsCatalogStructuredOutputs(capabilities: ModelCapabilities): boolean {
215 return !capabilities.deepResearch

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected