mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-21 17:38:40 +00:00
Update sqlite-vec provider to support OpenAI vector store apis
This commit is contained in:
parent
b55f1249e0
commit
1a888a6bfe
2 changed files with 296 additions and 12 deletions
|
|
@ -22,8 +22,10 @@ def skip_if_provider_doesnt_support_openai_vector_stores(client_with_models):
|
|||
|
||||
vector_io_providers = [p for p in client_with_models.providers.list() if p.api == "vector_io"]
|
||||
for p in vector_io_providers:
|
||||
if p.provider_type not in ["inline::faiss"]:
|
||||
pytest.skip(f"OpenAI vector stores are not supported by {p.provider_type}")
|
||||
if p.provider_type in ["inline::faiss", "inline::sqlite-vec"]:
|
||||
return
|
||||
|
||||
pytest.skip("OpenAI vector stores are not supported by any provider")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue