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