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):
334
334
elif self .document_action == DocumentAction .RemoveAll :
335
335
await self .blob_manager .remove_blob ()
336
336
337
- extra_params = {}
337
+ indexing_parameters = None
338
338
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
+ )
347
345
348
346
indexer = SearchIndexer (
349
347
name = self .indexer_name ,
350
348
description = "Indexer to index documents and generate embeddings" ,
351
349
skillset_name = self .skillset_name ,
352
350
target_index_name = self .search_info .index_name ,
353
351
data_source_name = self .data_source_name ,
354
- ** extra_params ,
352
+ parameters = indexing_parameters , # Properly pass the parameters
355
353
)
356
354
357
355
indexer_client = self .search_info .create_search_indexer_client ()
You can’t perform that action at this time.
0 commit comments