mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-26 22:19:49 +00:00
chore: Making name optional in openai_create_vector_store (#2858)
# What does this PR do? chore: Making name optional in openai_create_vector_store # Closes https://github.com/meta-llama/llama-stack/issues/2706 ## Test Plan CI and unit tests Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
8e1a2b4703
commit
20c3197952
4 changed files with 2 additions and 7 deletions
3
docs/_static/llama-stack-spec.html
vendored
3
docs/_static/llama-stack-spec.html
vendored
|
@ -13596,9 +13596,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
|
||||||
"name"
|
|
||||||
],
|
|
||||||
"title": "OpenaiCreateVectorStoreRequest"
|
"title": "OpenaiCreateVectorStoreRequest"
|
||||||
},
|
},
|
||||||
"VectorStoreFileCounts": {
|
"VectorStoreFileCounts": {
|
||||||
|
|
2
docs/_static/llama-stack-spec.yaml
vendored
2
docs/_static/llama-stack-spec.yaml
vendored
|
@ -9497,8 +9497,6 @@ components:
|
||||||
description: >-
|
description: >-
|
||||||
The ID of the provider to use for this vector store.
|
The ID of the provider to use for this vector store.
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
|
||||||
- name
|
|
||||||
title: OpenaiCreateVectorStoreRequest
|
title: OpenaiCreateVectorStoreRequest
|
||||||
VectorStoreFileCounts:
|
VectorStoreFileCounts:
|
||||||
type: object
|
type: object
|
||||||
|
|
|
@ -338,7 +338,7 @@ class VectorIO(Protocol):
|
||||||
@webmethod(route="/openai/v1/vector_stores", method="POST")
|
@webmethod(route="/openai/v1/vector_stores", method="POST")
|
||||||
async def openai_create_vector_store(
|
async def openai_create_vector_store(
|
||||||
self,
|
self,
|
||||||
name: str,
|
name: str | None = None,
|
||||||
file_ids: list[str] | None = None,
|
file_ids: list[str] | None = None,
|
||||||
expires_after: dict[str, Any] | None = None,
|
expires_after: dict[str, Any] | None = None,
|
||||||
chunking_strategy: dict[str, Any] | None = None,
|
chunking_strategy: dict[str, Any] | None = None,
|
||||||
|
|
|
@ -161,7 +161,7 @@ class OpenAIVectorStoreMixin(ABC):
|
||||||
|
|
||||||
async def openai_create_vector_store(
|
async def openai_create_vector_store(
|
||||||
self,
|
self,
|
||||||
name: str,
|
name: str | None = None,
|
||||||
file_ids: list[str] | None = None,
|
file_ids: list[str] | None = None,
|
||||||
expires_after: dict[str, Any] | None = None,
|
expires_after: dict[str, Any] | None = None,
|
||||||
chunking_strategy: dict[str, Any] | None = None,
|
chunking_strategy: dict[str, Any] | None = None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue