From 87d1cf8dc3142a4f1dd90fb1194be11292f13305 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 06:11:05 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c3895c4..bbff190 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ client = Zeroentropy() all_documents = [] # Automatically fetches more pages as needed. for document in client.documents.get_info_list( - collection_name="collection_name", + collection_name="example_collection", ): # Do something with document here all_documents.append(document) @@ -121,7 +121,7 @@ async def main() -> None: all_documents = [] # Iterate through items across all pages, issuing requests as needed. async for document in client.documents.get_info_list( - collection_name="collection_name", + collection_name="example_collection", ): all_documents.append(document) print(all_documents) @@ -134,7 +134,7 @@ Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get ```python first_page = await client.documents.get_info_list( - collection_name="collection_name", + collection_name="example_collection", ) if first_page.has_next_page(): print(f"will fetch next page using these details: {first_page.next_page_info()}") @@ -148,7 +148,7 @@ Or just work directly with the returned data: ```python first_page = await client.documents.get_info_list( - collection_name="collection_name", + collection_name="example_collection", ) print(f"next page cursor: {first_page.id_gt}") # => "next page cursor: ..."