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

Method list

src/openai/resources/videos.py:826–877  ·  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

824 )
825
826 def list(
827 self,
828 *,
829 after: str | Omit = omit,
830 limit: int | Omit = omit,
831 order: Literal["asc", "desc"] | Omit = omit,
832 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
833 # The extra values given here take precedence over values defined on the client or passed to this method.
834 extra_headers: Headers | None = None,
835 extra_query: Query | None = None,
836 extra_body: Body | None = None,
837 timeout: float | httpx.Timeout | None | NotGiven = not_given,
838 ) -> AsyncPaginator[Video, AsyncConversationCursorPage[Video]]:
839 """
840 List recently generated videos for the current project.
841
842 Args:
843 after: Identifier for the last item from the previous pagination request
844
845 limit: Number of items to retrieve
846
847 order: Sort order of results by timestamp. Use `asc` for ascending order or `desc` for
848 descending order.
849
850 extra_headers: Send extra headers
851
852 extra_query: Add additional query parameters to the request
853
854 extra_body: Add additional JSON properties to the request
855
856 timeout: Override the client-level default timeout for this request, in seconds
857 """
858 return self._get_api_list(
859 "/videos",
860 page=AsyncConversationCursorPage[Video],
861 options=make_request_options(
862 extra_headers=extra_headers,
863 extra_query=extra_query,
864 extra_body=extra_body,
865 timeout=timeout,
866 query=maybe_transform(
867 {
868 "after": after,
869 "limit": limit,
870 "order": order,
871 },
872 video_list_params.VideoListParams,
873 ),
874 security={"bearer_auth": True},
875 ),
876 model=Video,
877 )
878
879 async def delete(
880 self,

Callers

nothing calls this directly

Calls 2

make_request_optionsFunction · 0.85
maybe_transformFunction · 0.85

Tested by

no test coverage detected