Files
frigate/web/src/components/config-form/section-configs/genai.ts
T

59 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-02-27 09:55:36 -06:00
import type { SectionConfigOverrides } from "./types";
const genai: SectionConfigOverrides = {
base: {
2026-06-04 18:07:12 -05:00
sectionDocs: "/configuration/genai/genai_config",
2026-03-20 08:24:34 -05:00
advancedFields: ["*.base_url", "*.provider_options", "*.runtime_options"],
2026-02-27 09:55:36 -06:00
hiddenFields: ["genai.enabled_in_config"],
2026-04-04 07:54:51 -05:00
restartRequired: [],
2026-02-27 09:55:36 -06:00
uiSchema: {
2026-03-20 08:24:34 -05:00
"ui:options": { disableNestedCard: true },
"*": {
2026-07-11 17:30:40 -05:00
"ui:options": {
disableNestedCard: true,
additionalPropertyKeyLabel:
"configForm.additionalProperties.providerNameLabel",
additionalPropertyKeyPlaceholder:
"configForm.additionalProperties.providerNamePlaceholder",
additionalPropertyKeyPattern: "^[a-zA-Z0-9_-]+$",
preventKeyRename: true,
},
2026-03-20 08:24:34 -05:00
"ui:order": [
"provider",
"api_key",
"base_url",
"model",
"provider_options",
"runtime_options",
"*",
],
2026-02-27 09:55:36 -06:00
},
2026-03-20 08:24:34 -05:00
"*.roles": {
"ui:widget": "genaiRoles",
},
"*.api_key": {
"ui:widget": "password",
2026-02-27 09:55:36 -06:00
"ui:options": { size: "lg" },
},
2026-03-20 08:24:34 -05:00
"*.base_url": {
"ui:options": { size: "lg" },
2026-02-27 09:55:36 -06:00
},
2026-03-20 08:24:34 -05:00
"*.model": {
2026-04-03 17:13:52 -06:00
"ui:widget": "genaiModel",
2026-03-20 08:24:34 -05:00
"ui:options": { size: "xs" },
},
"*.provider": {
"ui:options": { size: "xs" },
},
"*.provider_options": {
2026-04-04 07:54:51 -05:00
"ui:field": "DictAsYamlField",
2026-02-27 09:55:36 -06:00
},
2026-03-20 08:24:34 -05:00
"*.runtime_options": {
2026-04-04 07:54:51 -05:00
"ui:field": "DictAsYamlField",
2026-02-27 09:55:36 -06:00
},
},
},
};
export default genai;