mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.11.9 (#406)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
abaad35c7e
commit
00d71ec70e
@@ -430,6 +430,14 @@ class Images(BaseSDK):
|
||||
errors.NotFoundResponseErrorData, http_res, http_res_text
|
||||
)
|
||||
raise errors.NotFoundResponseError(response_data, http_res, http_res_text)
|
||||
if utils.match_response(http_res, "413", "application/json"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
response_data = unmarshal_json_response(
|
||||
errors.PayloadTooLargeResponseErrorData, http_res, http_res_text
|
||||
)
|
||||
raise errors.PayloadTooLargeResponseError(
|
||||
response_data, http_res, http_res_text
|
||||
)
|
||||
if utils.match_response(http_res, "429", "application/json"):
|
||||
http_res_text = utils.stream_to_text(http_res)
|
||||
response_data = unmarshal_json_response(
|
||||
@@ -902,6 +910,14 @@ class Images(BaseSDK):
|
||||
errors.NotFoundResponseErrorData, http_res, http_res_text
|
||||
)
|
||||
raise errors.NotFoundResponseError(response_data, http_res, http_res_text)
|
||||
if utils.match_response(http_res, "413", "application/json"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
response_data = unmarshal_json_response(
|
||||
errors.PayloadTooLargeResponseErrorData, http_res, http_res_text
|
||||
)
|
||||
raise errors.PayloadTooLargeResponseError(
|
||||
response_data, http_res, http_res_text
|
||||
)
|
||||
if utils.match_response(http_res, "429", "application/json"):
|
||||
http_res_text = await utils.stream_to_text_async(http_res)
|
||||
response_data = unmarshal_json_response(
|
||||
|
||||
Reference in New Issue
Block a user