(url: string)
| 239 | } |
| 240 | |
| 241 | function decodeDataUrl(url: string) { |
| 242 | const match = /^data:([^;]+);base64,(.*)$/.exec(url) |
| 243 | if (!match) return |
| 244 | return { mime: match[1], base64: match[2] } |
| 245 | } |
| 246 | |
| 247 | function audienceFlags(audience: readonly Role[] | null | undefined) { |
| 248 | if (audience?.length === 1 && audience[0] === "assistant") return { synthetic: true } |
no outgoing calls
no test coverage detected