(content: string)
| 23 | const INCLUDE_ENCRYPTED_REASONING = ["reasoning.encrypted_content"] as const |
| 24 | |
| 25 | export function sanitizeSurrogates(content: string) { |
| 26 | return content.replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g, "\uFFFD") |
| 27 | } |
| 28 | |
| 29 | // Maps npm package to the key the AI SDK expects for providerOptions |
| 30 | function sdkKey(npm: string): string | undefined { |
no outgoing calls
no test coverage detected