Service Usage Limits (lib/limits.ts)

parley · src/lib/limits.ts · typescript · Apache-2.0
voice, infra, lang:typescript, tag:limits, tag:configuration, tag:saas

Defines configuration constants for hosted service quotas including voice typing and LLM credits. Use this to enforce usage constraints and provide UI feedback for service limits.

// Source: https://github.com/pathorsAI/parley | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Usage limits for the hosted "parley" provider — the service limits of the
// official/cloud build. They apply ONLY when the signed-in user picks the
// hosted "parley" provider; BYOK (bring-your-own-key) is uncapped because it
// never touches the Parley backend. This is the single source of truth for the
// client-side enforcement and the copy that explains it.
//
// The per-user monthly quotas (STT hours, LLM credits) are metered and enforced
// server-side — the constants here are the defaults the backend also uses, kept
// in sync for display fallbacks. The voice-typing cap is enf

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key