mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 23:14:12 +02:00
Add ability to pass additional args to Ollama (#19484)
* Call out recognized objects more specifically * Cleanup * Make keep_alive and options configurable * Generalize * Use for other providers
This commit is contained in:
committed by
Blake Blackshear
parent
dace88bfce
commit
7740b08bd9
@@ -209,7 +209,9 @@ def run_analysis(
|
||||
{
|
||||
"id": final_data["id"],
|
||||
"camera": camera,
|
||||
"objects": final_data["data"]["objects"],
|
||||
"objects": list(
|
||||
filter(lambda o: "-verified" not in o, final_data["data"]["objects"])
|
||||
),
|
||||
"recognized_objects": final_data["data"]["sub_labels"],
|
||||
"zones": final_data["data"]["zones"],
|
||||
"timestamp": datetime.datetime.fromtimestamp(final_data["end_time"]),
|
||||
|
||||
Reference in New Issue
Block a user