MCPcopy
hub / github.com/openai/openai-python / list

Method list

src/openai/resources/videos.py:247–298  ·  view source on GitHub ↗

List recently generated videos for the current project. Args: after: Identifier for the last item from the previous pagination request limit: Number of items to retrieve order: Sort order of results by timestamp. Use `asc` for ascending order or `des

(
        self,
        *,
        after: str | Omit = omit,
        limit: int | Omit = omit,
        order: Literal["asc", "desc"] | Omit = omit,
        # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
        # The extra values given here take precedence over values defined on the client or passed to this method.
        extra_headers: Headers | None = None,
        extra_query: Query | None = None,
        extra_body: Body | None = None,
        timeout: float | httpx.Timeout | None | NotGiven = not_given,
    )

Source from the content-addressed store, hash-verified

245 )
246
247 def list(
248 self,
249 *,
250 after: str | Omit = omit,
251 limit: int | Omit = omit,
252 order: Literal["asc", "desc"] | Omit = omit,
253 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254 # The extra values given here take precedence over values defined on the client or passed to this method.
255 extra_headers: Headers | None = None,
256 extra_query: Query | None = None,
257 extra_body: Body | None = None,
258 timeout: float | httpx.Timeout | None | NotGiven = not_given,
259 ) -> SyncConversationCursorPage[Video]:
260 """
261 List recently generated videos for the current project.
262
263 Args:
264 after: Identifier for the last item from the previous pagination request
265
266 limit: Number of items to retrieve
267
268 order: Sort order of results by timestamp. Use `asc` for ascending order or `desc` for
269 descending order.
270
271 extra_headers: Send extra headers
272
273 extra_query: Add additional query parameters to the request
274
275 extra_body: Add additional JSON properties to the request
276
277 timeout: Override the client-level default timeout for this request, in seconds
278 """
279 return self._get_api_list(
280 "/videos",
281 page=SyncConversationCursorPage[Video],
282 options=make_request_options(
283 extra_headers=extra_headers,
284 extra_query=extra_query,
285 extra_body=extra_body,
286 timeout=timeout,
287 query=maybe_transform(
288 {
289 "after": after,
290 "limit": limit,
291 "order": order,
292 },
293 video_list_params.VideoListParams,
294 ),
295 security={"bearer_auth": True},
296 ),
297 model=Video,
298 )
299
300 def delete(
301 self,

Callers

nothing calls this directly

Calls 2

make_request_optionsFunction · 0.85
maybe_transformFunction · 0.85

Tested by

no test coverage detected