Add ability to manually run Review Descriptions from the UI / API (#24222)

* Add ability to manually run Review Descriptions from the UI / API

* Fix not handling None type for call
This commit is contained in:
Nicolas Mowen
2026-09-12 07:30:04 -06:00
parent 82be9fff5e
commit f9347967eb
11 changed files with 409 additions and 39 deletions
+55
View File
@@ -2283,6 +2283,42 @@ paths:
- frigateUserAuth: []
x-required-role: camera
description: '**Access:** Authenticated user with access to the referenced camera.'
/review/{review_id}/regenerate_description:
put:
tags:
- Review
summary: Generate a review item description
description: |-
**Access:** Admin role required.
Re-runs a review item through the GenAI descriptions process.
Frames are always taken from recordings, and both alerts and detections are
accepted regardless of the camera's GenAI alerts/detections toggles.
operationId:
regenerate_review_description_review__review_id__regenerate_description_put
parameters:
- name: review_id
in: path
required: true
schema:
type: string
title: Review Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/GenericResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- frigateAdminAuth: []
x-required-role: admin
/review/{review_id}/viewed:
delete:
tags:
@@ -2482,6 +2518,25 @@ paths:
security:
- frigateAdminAuth: []
x-required-role: admin
/genai/roles:
get:
tags:
- App
summary: Get the model assigned to each GenAI role
description: |-
**Access:** Admin role required.
Returns the selected model and its context size for each configured GenAI role. Reads only what the client saved when it initialized, so the provider is not queried for its model list.
operationId: genai_roles_genai_roles_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- frigateAdminAuth: []
x-required-role: admin
/genai/probe:
post:
tags: