MCPcopy
hub / github.com/simstudioai/sim / normalizeProviderMimeType

Function normalizeProviderMimeType

apps/sim/providers/attachments.ts:255–260  ·  view source on GitHub ↗
(mimeType: string, provider: AttachmentProvider)

Source from the content-addressed store, hash-verified

253}
254
255function normalizeProviderMimeType(mimeType: string, provider: AttachmentProvider): string {
256 if ((provider === 'anthropic' || provider === 'google') && isTextDocumentMimeType(mimeType)) {
257 return 'text/plain'
258 }
259 return mimeType
260}
261
262function decodeBase64Text(base64: string, filename: string): string {
263 try {

Callers 1

Calls 1

isTextDocumentMimeTypeFunction · 0.85

Tested by

no test coverage detected