Skip to content

Commit

Permalink
update providerkey
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrfrazier committed Aug 23, 2024
1 parent 16fdd01 commit f6ae6f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/tests/integration/astra/test_astra_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_astra_vectorize():

store = None
try:
options = {"provider": "nvidia", "modelName": "NV-Embed-QA", "parameters": {}, "authentication": {}}
options = {"provider": "nvidia", "modelName": "NV-Embed-QA"}
store = AstraDBVectorStore(
collection_name=VECTORIZE_COLLECTION,
api_endpoint=os.getenv("ASTRA_DB_API_ENDPOINT"),
Expand Down Expand Up @@ -189,7 +189,7 @@ def test_astra_vectorize_with_provider_api_key():


@pytest.mark.skipif(
not check_env_vars("ASTRA_DB_APPLICATION_TOKEN", "ASTRA_DB_API_ENDPOINT", "OPENAI_API_KEY"),
not check_env_vars("ASTRA_DB_APPLICATION_TOKEN", "ASTRA_DB_API_ENDPOINT"),
reason="missing env vars",
)
def test_astra_vectorize_passes_authentication():
Expand All @@ -206,7 +206,7 @@ def test_astra_vectorize_passes_authentication():
"provider": "openai",
"modelName": "text-embedding-3-small",
"parameters": {},
"authentication": {"providerKey": "providerKey"},
"authentication": {"providerKey": "apikey"},
}
store = AstraDBVectorStore(
collection_name=VECTORIZE_COLLECTION_OPENAI_WITH_AUTH,
Expand All @@ -219,7 +219,7 @@ def test_astra_vectorize_passes_authentication():

vectorize = AstraVectorizeComponent()
vectorize.build(
provider="OpenAI", model_name="text-embedding-3-small", authentication={"providerKey": "providerKey"}
provider="OpenAI", model_name="text-embedding-3-small", authentication={"providerKey": "apikey"}
)
vectorize_options = vectorize.build_options()

Expand Down

0 comments on commit f6ae6f6

Please sign in to comment.