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