MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / sanitizeOpenAiCallId

Function sanitizeOpenAiCallId

src/utils/tool-id.ts:52–56  ·  view source on GitHub ↗
(id: string, maxLength: number = OPENAI_CALL_ID_MAX_LENGTH)

Source from the content-addressed store, hash-verified

50 * @returns The sanitized and truncated ID
51 */
52export 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}

Callers 6

tool-id.spec.tsFile · 0.90
createMessageMethod · 0.90
mimo.spec.tsFile · 0.90

Calls 2

sanitizeToolUseIdFunction · 0.85
truncateOpenAiCallIdFunction · 0.85

Tested by

no test coverage detected