(id: string, maxLength: number = OPENAI_CALL_ID_MAX_LENGTH)
| 50 | * @returns The sanitized and truncated ID |
| 51 | */ |
| 52 | export function sanitizeOpenAiCallId(id: string, maxLength: number = OPENAI_CALL_ID_MAX_LENGTH): string { |
| 53 | // First sanitize characters, then truncate |
| 54 | const sanitized = sanitizeToolUseId(id) |
| 55 | return truncateOpenAiCallId(sanitized, maxLength) |
| 56 | } |
no test coverage detected