File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 69
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-7c699d4503077d06a4a44f52c0c1f902d19a87c766b8be75b97c8dfd484ad4aa .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-dfb00c627f58e5180af7a9b29ed2f2aa0764a3b9daa6a32a1cc45bc8e48dfe15 .yml
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ def next_page_info(self) -> None:
61
61
62
62
class SyncCursorPage (BaseSyncPage [_T ], BasePage [_T ], Generic [_T ]):
63
63
data : List [_T ]
64
+ has_more : Optional [bool ] = None
64
65
65
66
@override
66
67
def _get_page_items (self ) -> List [_T ]:
@@ -69,6 +70,14 @@ def _get_page_items(self) -> List[_T]:
69
70
return []
70
71
return data
71
72
73
+ @override
74
+ def has_next_page (self ) -> bool :
75
+ has_more = self .has_more
76
+ if has_more is not None and has_more is False :
77
+ return False
78
+
79
+ return super ().has_next_page ()
80
+
72
81
@override
73
82
def next_page_info (self ) -> Optional [PageInfo ]:
74
83
data = self .data
@@ -85,6 +94,7 @@ def next_page_info(self) -> Optional[PageInfo]:
85
94
86
95
class AsyncCursorPage (BaseAsyncPage [_T ], BasePage [_T ], Generic [_T ]):
87
96
data : List [_T ]
97
+ has_more : Optional [bool ] = None
88
98
89
99
@override
90
100
def _get_page_items (self ) -> List [_T ]:
@@ -93,6 +103,14 @@ def _get_page_items(self) -> List[_T]:
93
103
return []
94
104
return data
95
105
106
+ @override
107
+ def has_next_page (self ) -> bool :
108
+ has_more = self .has_more
109
+ if has_more is not None and has_more is False :
110
+ return False
111
+
112
+ return super ().has_next_page ()
113
+
96
114
@override
97
115
def next_page_info (self ) -> Optional [PageInfo ]:
98
116
data = self .data
You can’t perform that action at this time.
0 commit comments