mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-03 06:40:22 +00:00
Prompt changes
This commit is contained in:
parent
32bd32cf50
commit
ca38705ea5
@ -3,10 +3,10 @@ from pydantic import BaseModel, Field
|
||||
|
||||
class ReviewMetadata(BaseModel):
|
||||
scene: str = Field(
|
||||
description="A concise summary of the overall scene. This should be a single string of text."
|
||||
description="A comprehensive description of the setting and entities, including relevant context and plausible inferences if supported by visual evidence."
|
||||
)
|
||||
action: str = Field(
|
||||
description="A concise description of the primary action or event happening in the scene. This should be a single string of text."
|
||||
confidence: float = Field(
|
||||
description="A float between 0 and 1 representing your overall confidence in this analysis."
|
||||
)
|
||||
potential_threat_level: int | None = Field(
|
||||
default=None,
|
||||
|
||||
@ -56,9 +56,8 @@ class GenAIClient:
|
||||
|
||||
Your response **MUST** be a flat JSON object with the following fields:
|
||||
- `scene` (string): A comprehensive description of the setting and entities, including relevant context and plausible inferences if supported by visual evidence.
|
||||
- `action` (string): A concise description of the main action(s) or movement(s) taking place.
|
||||
- `potential_threat_level` (integer, optional): 0–3 scale. Only include if a clear security concern is visible:
|
||||
- 0 = No concern
|
||||
- `confidence` (float): A float between 0 and 1 representing your overall confidence in this analysis.
|
||||
- `potential_threat_level` (integer, optional): 1–3 scale. Only include if a clear security concern is visible:
|
||||
- 1 = Unusual but not overtly threatening
|
||||
- 2 = Suspicious or potentially harmful
|
||||
- 3 = Clear and immediate threat
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user