Spaces:
Paused
Paused
Download lib/serviceFilter.ts from imkrish/ig-costing: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/imkrish/ig-costing/resolve/main/lib/serviceFilter.ts
- Command line
-
hf download hf://spaces/imkrish/ig-costing/lib/serviceFilter.ts
-
curl -L -o serviceFilter.ts https://huggingface.co/spaces/imkrish/ig-costing/resolve/main/lib/serviceFilter.ts
515 Bytes
| export type ServiceType = 'all' | 'LLM' | 'STT' | 'TTS' | 'API' | 'Avatar' | |
| // getServiceType() in lib/pricing.ts already classifies model === 'heygen' as | |
| // service_type 'Avatar' when an ingested event doesn't specify one itself, so | |
| // 'Avatar' is a real, if not-yet-populated, service_type value - no special-casing | |
| // needed here. | |
| export function buildServiceMatch(service: string | null | undefined): Record<string, unknown> { | |
| if (!service || service === 'all') return {} | |
| return { service_type: service } | |
| } | |