MCPcopy Index your code
hub / github.com/simstudioai/sim / shouldUseLargeFilePath

Function shouldUseLargeFilePath

apps/sim/providers/attachments.ts:88–94  ·  view source on GitHub ↗
(
  file: Pick<UserFile, 'size'>,
  providerId: ProviderId | string
)

Source from the content-addressed store, hash-verified

86
87/** True when a file exceeds the inline threshold and the provider has a large-file path. */
88export function shouldUseLargeFilePath(
89 file: Pick<UserFile, 'size'>,
90 providerId: ProviderId | string
91): boolean {
92 if (getProviderFileAttachment(providerId).strategy === 'inline') return false
93 return Number.isFinite(file.size) && file.size > INLINE_ATTACHMENT_THRESHOLD_BYTES
94}
95
96const PDF_MIME_TYPE = 'application/pdf'
97

Callers 3

Calls 1

Tested by

no test coverage detected