refactor(vector-db): remove redundant fallback assignment for provider_vector_db_id

This commit is contained in:
Habeb Nawatha 2025-09-12 12:26:22 +03:00
parent 4084158faa
commit fa7144163e

View file

@ -52,8 +52,6 @@ class VectorDBsRoutingTable(CommonRoutingTableImpl, VectorDBs):
provider_vector_db_id: str | None = None,
vector_db_name: str | None = None,
) -> VectorDB:
provider_vector_db_id = provider_vector_db_id or vector_db_id
model = await lookup_model(self, embedding_model)
if model is None:
raise ModelNotFoundError(embedding_model)