(key: string)
| 65 | } |
| 66 | |
| 67 | function forgetTraceCacheEntry(key: string) { |
| 68 | const entry = traceCache.get(key) |
| 69 | if (!entry) return |
| 70 | traceCache.delete(key) |
| 71 | traceCacheMessageHashCount -= entry.messageHashes.length |
| 72 | } |
| 73 | |
| 74 | function buildChatCompletionTraceRecord(params: { |
| 75 | body: ChatCompletionRequestBody |
no test coverage detected