Files
frigate/web/src/lib/const.ts
T

51 lines
1.1 KiB
TypeScript
Raw Normal View History

/** ONNX embedding models that require local model downloads. GenAI providers are not in this list. */
export const JINA_EMBEDDING_MODELS = ["jinav1", "jinav2"] as const;
/**
* Sentinel the backend substitutes for saved credentials (api keys,
* passwords, secrets) in /config responses. The credential widget renders
* this value as an empty input with a "saved — leave blank to keep" hint,
* and stripRedactedCredentials() removes any field still equal to this
* value before sending a config/set payload so the saved YAML value is
* preserved. Mirror of frigate.const.REDACTED_CREDENTIAL_SENTINEL.
*/
export const REDACTED_CREDENTIAL_SENTINEL = "__FRIGATE_SAVED_CREDENTIAL__";
2026-03-26 13:47:24 -05:00
export const ANNOTATION_OFFSET_MIN = -10000;
2026-06-01 14:55:52 -05:00
export const ANNOTATION_OFFSET_MAX = 10000;
2026-03-26 13:47:24 -05:00
export const ANNOTATION_OFFSET_STEP = 50;
export const supportedLanguageKeys = [
"en",
"es",
2025-05-22 19:16:35 -05:00
"pt",
2025-08-10 07:27:47 -05:00
"pt-BR",
"fr",
"de",
"it",
2025-06-11 13:08:46 -05:00
"ca",
2025-06-20 16:39:47 -06:00
"ro",
"nl",
"nb-NO",
"sv",
"zh-CN",
"zh-Hant",
"yue-Hant",
"ja",
2025-06-17 13:11:19 -06:00
"vi",
2025-05-20 17:47:05 -05:00
"th",
2025-06-11 13:08:46 -05:00
"he",
2026-02-03 13:29:52 -06:00
"fa",
"ru",
2025-05-19 15:43:22 -05:00
"tr",
"pl",
2026-02-03 13:29:52 -06:00
"hr",
2026-05-10 11:09:28 -06:00
"bs",
2026-02-03 13:29:52 -06:00
"sk",
2026-03-15 07:26:23 -05:00
"sl",
"lt",
2025-05-11 13:03:53 -05:00
"uk",
2025-05-19 15:43:22 -05:00
"cs",
2025-06-25 16:45:24 -05:00
"hu",
];