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

Method get_character

src/openai/resources/videos.py:1130–1165  ·  view source on GitHub ↗

Fetch a character. Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for this re

(
        self,
        character_id: str,
        *,
        # 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

1128 )
1129
1130 async def get_character(
1131 self,
1132 character_id: str,
1133 *,
1134 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1135 # The extra values given here take precedence over values defined on the client or passed to this method.
1136 extra_headers: Headers | None = None,
1137 extra_query: Query | None = None,
1138 extra_body: Body | None = None,
1139 timeout: float | httpx.Timeout | None | NotGiven = not_given,
1140 ) -> VideoGetCharacterResponse:
1141 """
1142 Fetch a character.
1143
1144 Args:
1145 extra_headers: Send extra headers
1146
1147 extra_query: Add additional query parameters to the request
1148
1149 extra_body: Add additional JSON properties to the request
1150
1151 timeout: Override the client-level default timeout for this request, in seconds
1152 """
1153 if not character_id:
1154 raise ValueError(f"Expected a non-empty value for `character_id` but received {character_id!r}")
1155 return await self._get(
1156 path_template("/videos/characters/{character_id}", character_id=character_id),
1157 options=make_request_options(
1158 extra_headers=extra_headers,
1159 extra_query=extra_query,
1160 extra_body=extra_body,
1161 timeout=timeout,
1162 security={"bearer_auth": True},
1163 ),
1164 cast_to=VideoGetCharacterResponse,
1165 )
1166
1167 async def remix(
1168 self,

Callers

nothing calls this directly

Calls 2

path_templateFunction · 0.85
make_request_optionsFunction · 0.85

Tested by

no test coverage detected