Merge acac63de5d into sapling-pr-archive-ehhuang

This commit is contained in:
ehhuang 2025-11-05 15:08:13 -08:00 committed by GitHub
commit a0471291f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,6 +292,8 @@ class VectorIORouter(VectorIO):
chunking_strategy: VectorStoreChunkingStrategy | None = None,
) -> VectorStoreFileObject:
logger.debug(f"VectorIORouter.openai_attach_file_to_vector_store: {vector_store_id}, {file_id}")
if chunking_strategy is None or chunking_strategy.type == "auto":
chunking_strategy = VectorStoreChunkingStrategyStatic(static=VectorStoreChunkingStrategyStaticConfig())
provider = await self.routing_table.get_provider_impl(vector_store_id)
return await provider.openai_attach_file_to_vector_store(
vector_store_id=vector_store_id,