(text: string, maxLength: number)
| 273 | } |
| 274 | |
| 275 | function truncateForSemanticDetection(text: string, maxLength: number): string { |
| 276 | if (text.length <= maxLength) return text; |
| 277 | return `${text.slice(0, maxLength)}\n...[truncated]`; |
| 278 | } |
| 279 | |
| 280 | async function callSemanticDetectionApi( |
| 281 | systemPrompt: string, |
no outgoing calls
no test coverage detected