mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-27 06:28:50 +00:00
chore: Enabling teste for Weaviate
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> chore: Actually enabling Chroma unit tests Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> fixed tests Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> fix integration test Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> remove changes from weavbiate Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
parent
cd8715d327
commit
2defebc835
3 changed files with 56 additions and 28 deletions
|
@ -22,7 +22,14 @@ logger = logging.getLogger(__name__)
|
|||
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 in ["inline::faiss", "inline::sqlite-vec", "inline::milvus", "inline::chromadb"]:
|
||||
if p.provider_type in [
|
||||
"inline::faiss",
|
||||
"inline::sqlite-vec",
|
||||
"inline::milvus",
|
||||
"inline::chromadb",
|
||||
"remote::pgvector",
|
||||
"remote::chromadb",
|
||||
]:
|
||||
return
|
||||
|
||||
pytest.skip("OpenAI vector stores are not supported by any provider")
|
||||
|
@ -31,12 +38,7 @@ def skip_if_provider_doesnt_support_openai_vector_stores(client_with_models):
|
|||
def skip_if_provider_doesnt_support_openai_vector_store_files_api(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 in [
|
||||
"inline::faiss",
|
||||
"inline::sqlite-vec",
|
||||
"inline::milvus",
|
||||
"remote::pgvector",
|
||||
]:
|
||||
if p.provider_type in []:
|
||||
return
|
||||
|
||||
pytest.skip("OpenAI vector stores are not supported by any provider")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue