@@ -245,20 +245,26 @@ def delete_scene_collection(self, collection_id: str) -> None:
245245 def index_scenes (
246246 self ,
247247 extraction_type : SceneExtractionType = SceneExtractionType .scene_based ,
248- extraction_config : dict = {},
249- prompt : str = None ,
250- scenes : List [Scene ] = [],
251- force : bool = False ,
252- callback_url : str = None ,
253- ) -> List [Scene ] or None :
248+ extraction_config : Dict = {},
249+ prompt : Optional [str ] = None ,
250+ model : Optional [str ] = None ,
251+ model_config : Optional [Dict ] = None ,
252+ name : Optional [str ] = None ,
253+ scenes : Optional [List [Scene ]] = None ,
254+ force : Optional [bool ] = False ,
255+ callback_url : Optional [str ] = None ,
256+ ) -> Optional [List ]:
254257 scenes_data = self ._connection .post (
255258 path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } /{ ApiPath .scene } " ,
256259 data = {
257- "scenes" : [scene .to_json () for scene in scenes ],
258260 "extraction_type" : extraction_type ,
259261 "extraction_config" : extraction_config ,
260262 "prompt" : prompt ,
263+ "model" : model ,
264+ "model_config" : model_config ,
265+ "name" : name ,
261266 "force" : force ,
267+ "scenes" : [scene .to_json () for scene in scenes ] if scenes else None ,
262268 "callback_url" : callback_url ,
263269 },
264270 )
@@ -273,7 +279,7 @@ def list_scene_index(self) -> List:
273279
274280 return index_data .get ("scene_indexes" , [])
275281
276- def get_scene_index (self , scene_index_id : str ) -> List [ Scene ] or None :
282+ def get_scene_index (self , scene_index_id : str ) -> Optional [ List ] :
277283 index_data = self ._connection .get (
278284 path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } /{ ApiPath .scene } /{ scene_index_id } "
279285 )
0 commit comments