mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
reverting name change
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
85cc16e572
commit
b094960199
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ class OpenAIVectorStoreMixin(ABC):
|
||||||
provider_vector_db_id: str | None = None,
|
provider_vector_db_id: str | None = None,
|
||||||
) -> VectorStoreObject:
|
) -> VectorStoreObject:
|
||||||
"""Creates a vector store."""
|
"""Creates a vector store."""
|
||||||
store_id = f"vs_{str(uuid.uuid4())}"
|
store_id = name or str(uuid.uuid4())
|
||||||
created_at = int(time.time())
|
created_at = int(time.time())
|
||||||
|
|
||||||
if provider_id is None:
|
if provider_id is None:
|
||||||
|
@ -186,7 +186,7 @@ class OpenAIVectorStoreMixin(ABC):
|
||||||
"id": store_id,
|
"id": store_id,
|
||||||
"object": "vector_store",
|
"object": "vector_store",
|
||||||
"created_at": created_at,
|
"created_at": created_at,
|
||||||
"name": name,
|
"name": store_id,
|
||||||
"usage_bytes": 0,
|
"usage_bytes": 0,
|
||||||
"file_counts": file_counts.model_dump(),
|
"file_counts": file_counts.model_dump(),
|
||||||
"status": status,
|
"status": status,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue