Spaces:
Sleeping
Sleeping
Download lib/chat-trace.ts from TigerHatKth/CoDEVX: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/TigerHatKth/CoDEVX/resolve/main/lib/chat-trace.ts
- Command line
-
hf download hf://spaces/TigerHatKth/CoDEVX/lib/chat-trace.ts
-
curl -L -o chat-trace.ts https://huggingface.co/spaces/TigerHatKth/CoDEVX/resolve/main/lib/chat-trace.ts
258 Bytes
| export type ModelTrace = { | |
| provider: "mock" | "live"; | |
| model?: string; | |
| endpoint?: string; | |
| requestPreview?: string; | |
| responsePreview?: string; | |
| }; | |
| export function compactTracePreview(value: string, max = 1200) { | |
| return value.trim().slice(0, max); | |
| } | |