(
part:
| Prompt.SystemMessage
| Prompt.UserMessage
| Prompt.AssistantMessage
| Prompt.ToolMessage
| Prompt.TextPart
| Prompt.ReasoningPart
| Prompt.FilePart
| Prompt.ToolResultPart
)
| 1095 | // ============================================================================= |
| 1096 | |
| 1097 | const getCacheControl = ( |
| 1098 | part: |
| 1099 | | Prompt.SystemMessage |
| 1100 | | Prompt.UserMessage |
| 1101 | | Prompt.AssistantMessage |
| 1102 | | Prompt.ToolMessage |
| 1103 | | Prompt.TextPart |
| 1104 | | Prompt.ReasoningPart |
| 1105 | | Prompt.FilePart |
| 1106 | | Prompt.ToolResultPart |
| 1107 | ): typeof Generated.CacheControlEphemeral.Encoded | undefined => part.options.openrouter?.cacheControl |
| 1108 | |
| 1109 | const getMediaType = (dataUrl: string): string | undefined => { |
| 1110 | const match = dataUrl.match(/^data:([^;]+)/) |
no outgoing calls
no test coverage detected