File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -334,24 +334,22 @@ async def run(self):
334334 elif self .document_action == DocumentAction .RemoveAll :
335335 await self .blob_manager .remove_blob ()
336336
337- extra_params = {}
337+ indexing_parameters = None
338338 if self .use_multimodal :
339- extra_params = {
340- "parameters" : IndexingParameters (
341- configuration = IndexingParametersConfiguration (
342- query_timeout = None , allow_skillset_to_read_file_data = True # Current bug in AI Search SDK
343- ),
344- max_failed_items = - 1 ,
345- )
346- }
339+ indexing_parameters = IndexingParameters (
340+ configuration = IndexingParametersConfiguration (
341+ query_timeout = None , allow_skillset_to_read_file_data = True # type: ignore
342+ ),
343+ max_failed_items = - 1 ,
344+ )
347345
348346 indexer = SearchIndexer (
349347 name = self .indexer_name ,
350348 description = "Indexer to index documents and generate embeddings" ,
351349 skillset_name = self .skillset_name ,
352350 target_index_name = self .search_info .index_name ,
353351 data_source_name = self .data_source_name ,
354- ** extra_params ,
352+ parameters = indexing_parameters , # Properly pass the parameters
355353 )
356354
357355 indexer_client = self .search_info .create_search_indexer_client ()
You can’t perform that action at this time.
0 commit comments