(dataUrl: string)
| 1107 | ): typeof Generated.CacheControlEphemeral.Encoded | undefined => part.options.openrouter?.cacheControl |
| 1108 | |
| 1109 | const getMediaType = (dataUrl: string): string | undefined => { |
| 1110 | const match = dataUrl.match(/^data:([^;]+)/) |
| 1111 | return match ? match[1] : undefined |
| 1112 | } |
| 1113 | |
| 1114 | const getBase64FromDataUrl = (dataUrl: string): string => { |
| 1115 | const match = dataUrl.match(/^data:[^;]*;base64,(.+)$/) |
no outgoing calls
no test coverage detected