fix: add overlay to remove nullable from pagination offset params (#121)

This commit is contained in:
Matt Apperson
2026-04-14 12:48:15 -04:00
committed by GitHub
parent 2bba049182
commit b2386114cd
440 changed files with 36150 additions and 32168 deletions
+12 -4
View File
@@ -26,7 +26,7 @@ class Generations(BaseSDK):
) -> operations.GetGenerationResponse:
r"""Get request & usage metadata for a generation
:param id:
:param id: The generation ID
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
@@ -81,10 +81,14 @@ class Generations(BaseSDK):
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)
retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["5XX"])
http_res = self.do_request(
hook_ctx=HookContext(
@@ -182,7 +186,7 @@ class Generations(BaseSDK):
) -> operations.GetGenerationResponse:
r"""Get request & usage metadata for a generation
:param id:
:param id: The generation ID
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
@@ -237,10 +241,14 @@ class Generations(BaseSDK):
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)
retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["5XX"])
http_res = await self.do_request_async(
hook_ctx=HookContext(