Skip to content

vector_stores.list() returns empty list even if vector stores exist #2209

Open
@alexander-grun

Description

@alexander-grun

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

ls = client.vector_stores.list()
print(ls)

gives

SyncCursorPage[VectorStore](data=[], has_more=False, object='list', first_id=None, last_id=None)

but querying by ID gives results back.

vs = client.vector_stores.retrieve(
vector_store_id="vs_123"
)
print(vs)

To Reproduce

ls = client.vector_stores.list()
print(ls)

Code snippets

OS

Windows

Python version

3.12

Library version

1.66.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions