33from videodb ._constants import (
44 ApiPath ,
55 IndexType ,
6- SceneModels ,
76 SearchType ,
87 SubtitleStyle ,
98 Workflows ,
@@ -47,7 +46,6 @@ def search(
4746 self ,
4847 query : str ,
4948 search_type : Optional [str ] = SearchType .semantic ,
50- scene_model : Optional [str ] = SceneModels .gemini_vision ,
5149 result_threshold : Optional [int ] = None ,
5250 score_threshold : Optional [int ] = None ,
5351 dynamic_score_percentage : Optional [int ] = None ,
@@ -59,7 +57,6 @@ def search(
5957 result_threshold = result_threshold ,
6058 score_threshold = score_threshold ,
6159 dynamic_score_percentage = dynamic_score_percentage ,
62- scene_model = scene_model ,
6360 )
6461
6562 def delete (self ) -> None :
@@ -136,7 +133,6 @@ def index_spoken_words(self) -> None:
136133
137134 def index_scenes (
138135 self ,
139- scene_model : str = SceneModels .gemini_vision ,
140136 force : bool = False ,
141137 prompt : str = None ,
142138 callback_url : str = None ,
@@ -145,34 +141,29 @@ def index_scenes(
145141 path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } " ,
146142 data = {
147143 "index_type" : IndexType .scene ,
148- "model_name" : scene_model ,
149144 "force" : force ,
150145 "prompt" : prompt ,
151146 "callback_url" : callback_url ,
152147 },
153148 )
154149
155- def get_scenes (
156- self , scene_model : str = SceneModels .gemini_vision
157- ) -> Union [list , None ]:
150+ def get_scenes (self ) -> Union [list , None ]:
158151 if self .scenes :
159152 return self .scenes
160153 scene_data = self ._connection .get (
161154 path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } " ,
162155 params = {
163156 "index_type" : IndexType .scene ,
164- "model_name" : scene_model ,
165157 },
166158 )
167159 self .scenes = scene_data
168160 return scene_data if scene_data else None
169161
170- def delete_scene_index (self , scene_model : str = SceneModels . gemini_vision ) -> None :
162+ def delete_scene_index (self ) -> None :
171163 self ._connection .post (
172164 path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } /{ ApiPath .delete } " ,
173165 data = {
174166 "index_type" : IndexType .scene ,
175- "model_name" : scene_model ,
176167 },
177168 )
178169 self .scenes = None
0 commit comments