Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
  • Loading branch information
nathadfield and Lee-W committed Apr 29, 2024
1 parent a7a6b2c commit 6eb1827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/openai/hooks/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def create_vector_store(self, **kwargs: Any) -> VectorStore:
vector_store = self.conn.beta.vector_stores.create(**kwargs)
return vector_store

def get_vectors_stores(self, **kwargs: Any) -> list[VectorStore]:
def get_vector_stores(self, **kwargs: Any) -> list[VectorStore]:
"""Return a list of vector stores."""
vector_stores = self.conn.beta.vector_stores.list(**kwargs)
return vector_stores.data
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/openai/hooks/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_get_vector_store(mock_openai_hook, mock_vector_store):

def test_get_vector_stores(mock_openai_hook, mock_vector_store_list):
mock_openai_hook.conn.beta.vector_stores.list.return_value = mock_vector_store_list
vector_stores = mock_openai_hook.get_vectors_stores()
vector_stores = mock_openai_hook.get_vector_stores()
assert isinstance(vector_stores, list)


Expand Down

0 comments on commit 6eb1827

Please sign in to comment.