NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Review fixes (#22442)
Nicolas Mowen5a214eb0d163
diff --git a/frigate/genai/__init__.py b/frigate/genai/__init__.pyindex 272420dab9..3e939d28d8 100644--- a/frigate/genai/__init__.py+++ b/frigate/genai/__init__.py@@ -153,6 +153,9 @@ Each line represents a detection state, not necessarily unique individuals. Pareif "other_concerns" in schema.get("required", []):schema["required"].remove("other_concerns")+ # OpenAI strict mode requires additionalProperties: false on all objects+ schema["additionalProperties"] = False+response_format = {"type": "json_schema","json_schema": {diff --git a/frigate/genai/llama_cpp.py b/frigate/genai/llama_cpp.pyindex 87443ac4fe..ac698b3b68 100644--- a/frigate/genai/llama_cpp.py+++ b/frigate/genai/llama_cpp.py@@ -36,19 +36,12 @@ def _to_jpeg(img_bytes: bytes) -> bytes | None:class LlamaCppClient(GenAIClient):"""Generative AI client for Frigate using llama.cpp server."""- LOCAL_OPTIMIZED_OPTIONS = {- "temperature": 0.7,- "repeat_penalty": 1.05,- "top_p": 0.8,- }-provider: str # base_urlprovider_options: dict[str, Any]def _init_provider(self):"""Initialize the client."""self.provider_options = {- **self.LOCAL_OPTIMIZED_OPTIONS,**self.genai_config.provider_options,}return (