forked from Github/frigate
Small genai fix (#14850)
* Ensure the regenerate button shows when genai is only enabled at the camera level * update docs
This commit is contained in:
@@ -477,7 +477,7 @@ function ObjectDetailsTab({
|
||||
onChange={(e) => setDesc(e.target.value)}
|
||||
/>
|
||||
<div className="flex w-full flex-row justify-end gap-2">
|
||||
{config?.genai.enabled && (
|
||||
{config?.cameras[search.camera].genai.enabled && (
|
||||
<div className="flex items-center">
|
||||
<Button
|
||||
className="rounded-r-none border-r-0"
|
||||
|
||||
@@ -77,6 +77,13 @@ export interface CameraConfig {
|
||||
cmd: string;
|
||||
roles: string[];
|
||||
}[];
|
||||
genai: {
|
||||
enabled: string;
|
||||
prompt: string;
|
||||
object_prompts: { [key: string]: string };
|
||||
required_zones: string[];
|
||||
objects: string[];
|
||||
};
|
||||
live: {
|
||||
height: number;
|
||||
quality: number;
|
||||
|
||||
Reference in New Issue
Block a user