10000 Update action values for alerts and remove default model name · video-db/videodb-python@089dfd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 089dfd9

Browse files
committed
Update action values for alerts and remove default model name
1 parent c048b15 commit 089dfd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

videodb/rtstream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ def list_alerts(self):
7878
def enable_alert(self, alert_id):
7979
self._connection.patch(
8080
f"{ApiPath.rtstream}/{self.rtstream_id}/{ApiPath.index}/{self.rtstream_index_id}/{ApiPath.alert}/{alert_id}/{ApiPath.status}",
81-
data={"status": "enabled"},
81+
data={"action": "enable"},
8282
)
8383

8484
def disable_alert(self, alert_id):
8585
self._connection.patch(
8686
f"{ApiPath.rtstream}/{self.rtstream_id}/{ApiPath.index}/{self.rtstream_index_id}/{ApiPath.alert}/{alert_id}/{ApiPath.status}",
87-
data={"status": "disabled"},
87+
data={"action": "disable"},
8888
)
8989

9090

@@ -135,7 +135,7 @@ def index_scenes(
135135
extraction_type=SceneExtractionType.time_based,
136136
extraction_config={"time": 2, "frame_count": 5},
137137
prompt="Describe the scene",
138-
model_name="GPT4o",
138+
model_name=None,
139139
model_config={},
140140
name=None,
141141
):

0 commit comments

Comments
 (0)
0