Download src/utils/telemetry/events.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/telemetry/events.ts
- Command line
-
hf download hf://chenbhao/codev@afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/telemetry/events.ts
-
curl -L -o events.ts https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/telemetry/events.ts
328 Bytes
| function isUserPromptLoggingEnabled(): boolean { | |
| return false | |
| } | |
| export function redactIfDisabled(content: string): string { | |
| return isUserPromptLoggingEnabled() ? content : '<REDACTED>' | |
| } | |
| export async function logOTelEvent( | |
| _eventName: string, | |
| _metadata: { [key: string]: string | undefined } = {}, | |
| ): Promise<void> {} | |