mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 15:13:57 +00:00
moving order of parameters
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
7ae99f33e7
commit
22f2484edc
5 changed files with 16 additions and 16 deletions
|
|
@ -32,14 +32,12 @@ class VectorDBsRoutingTable(CommonRoutingTableImpl, VectorDBs):
|
|||
async def register_vector_db(
|
||||
self,
|
||||
vector_db_id: str,
|
||||
provider_vector_db_id: str,
|
||||
embedding_model: str,
|
||||
embedding_dimension: int | None = 384,
|
||||
provider_id: str | None = None,
|
||||
provider_vector_db_id: str = "",
|
||||
vector_db_name: str | None = None,
|
||||
) -> VectorDB:
|
||||
if provider_vector_db_id == "":
|
||||
provider_vector_db_id = vector_db_id
|
||||
if provider_id is None:
|
||||
if len(self.impls_by_provider_id) > 0:
|
||||
provider_id = list(self.impls_by_provider_id.keys())[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue