()
| 52 | return `${sourceName(props.model)} ${props.model.name}${suffix}` |
| 53 | } |
| 54 | const inputs = () => { |
| 55 | if (props.model.capabilities) { |
| 56 | const input = props.model.capabilities.input |
| 57 | const order: Array<InputKey> = ["text", "image", "audio", "video", "pdf"] |
| 58 | const entries = order.filter((key) => input[key]).map((key) => inputLabel(key)) |
| 59 | return entries.length ? entries.join(", ") : undefined |
| 60 | } |
| 61 | const raw = props.model.modalities?.input |
| 62 | if (!raw) return |
| 63 | const entries = raw.map((value) => inputLabel(value)) |
| 64 | return entries.length ? entries.join(", ") : undefined |
| 65 | } |
| 66 | const reasoning = () => { |
| 67 | if (props.model.capabilities) |
| 68 | return props.model.capabilities.reasoning |
no test coverage detected