Skip to content

Commit 211e1bb

Browse files
SDK 1.13.3 Release (#3604)
* SDK regeneration * Update SDK from 46e9bda --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: vellum-automation[bot] <vellum-automation[bot]@users.noreply.github.com>
1 parent 6a069d2 commit 211e1bb

File tree

8 files changed

+53
-31
lines changed

8 files changed

+53
-31
lines changed

ee/codegen/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ee/codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vellum-ai/vellum-codegen",
3-
"version": "1.13.2",
3+
"version": "1.13.3",
44
"main": "lib/src/index.js",
55
"typings": "lib/src/index.d.ts",
66
"files": [

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "vellum-ai"
33

44
[tool.poetry]
55
name = "vellum-ai"
6-
version = "1.13.2"
6+
version = "1.13.3"
77
description = ""
88
readme = "README.md"
99
authors = []

src/vellum/client/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def __init__(
2727

2828
def get_headers(self) -> typing.Dict[str, str]:
2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "vellum-ai/1.13.2",
30+
"User-Agent": "vellum-ai/1.13.3",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "vellum-ai",
33-
"X-Fern-SDK-Version": "1.13.2",
33+
"X-Fern-SDK-Version": "1.13.3",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._api_version is not None:

src/vellum/client/errors/too_many_requests_error.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import typing
44

55
from ..core.api_error import ApiError
6-
from ..types.error_detail_response import ErrorDetailResponse
76

87

98
class TooManyRequestsError(ApiError):
10-
def __init__(self, body: ErrorDetailResponse, headers: typing.Optional[typing.Dict[str, str]] = None):
9+
def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
1110
super().__init__(status_code=429, headers=headers, body=body)

src/vellum/client/resources/events/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ def create(
103103
raise TooManyRequestsError(
104104
headers=dict(_response.headers),
105105
body=typing.cast(
106-
ErrorDetailResponse,
106+
typing.Optional[typing.Any],
107107
parse_obj_as(
108-
type_=ErrorDetailResponse, # type: ignore
108+
type_=typing.Optional[typing.Any], # type: ignore
109109
object_=_response.json(),
110110
),
111111
),
@@ -198,9 +198,9 @@ async def create(
198198
raise TooManyRequestsError(
199199
headers=dict(_response.headers),
200200
body=typing.cast(
201-
ErrorDetailResponse,
201+
typing.Optional[typing.Any],
202202
parse_obj_as(
203-
type_=ErrorDetailResponse, # type: ignore
203+
type_=typing.Optional[typing.Any], # type: ignore
204204
object_=_response.json(),
205205
),
206206
),

src/vellum/client/resources/integrations/raw_client.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from ...errors.bad_request_error import BadRequestError
1313
from ...errors.forbidden_error import ForbiddenError
1414
from ...errors.not_found_error import NotFoundError
15+
from ...errors.too_many_requests_error import TooManyRequestsError
1516
from ...types.components_schemas_composio_execute_tool_response import ComponentsSchemasComposioExecuteToolResponse
1617
from ...types.components_schemas_composio_tool_definition import ComponentsSchemasComposioToolDefinition
1718
from ...types.integration_read import IntegrationRead
@@ -184,6 +185,17 @@ def execute_integration_tool(
184185
),
185186
),
186187
)
188+
if _response.status_code == 429:
189+
raise TooManyRequestsError(
190+
headers=dict(_response.headers),
191+
body=typing.cast(
192+
typing.Optional[typing.Any],
193+
parse_obj_as(
194+
type_=typing.Optional[typing.Any], # type: ignore
195+
object_=_response.json(),
196+
),
197+
),
198+
)
187199
_response_json = _response.json()
188200
except JSONDecodeError:
189201
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
@@ -463,6 +475,17 @@ async def execute_integration_tool(
463475
),
464476
),
465477
)
478+
if _response.status_code == 429:
479+
raise TooManyRequestsError(
480+
headers=dict(_response.headers),
481+
body=typing.cast(
482+
typing.Optional[typing.Any],
483+
parse_obj_as(
484+
type_=typing.Optional[typing.Any], # type: ignore
485+
object_=_response.json(),
486+
),
487+
),
488+
)
466489
_response_json = _response.json()
467490
except JSONDecodeError:
468491
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)

0 commit comments

Comments
 (0)