Skip to content

Commit 5782127

Browse files
authored
fix: not given as a constant not class (#244)
1 parent 5deee97 commit 5782127

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ai21/clients/studio/resources/beta/assistant/assistant_routes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
StudioResource,
99
)
1010
from ai21.models.responses.route_response import RouteResponse, ListRouteResponse
11-
from ai21.types import NotGiven
11+
from ai21.types import NotGiven, NOT_GIVEN
1212

1313

1414
class AssistantRoutes(StudioResource, BaseRoutes):
@@ -36,7 +36,7 @@ def list(
3636
self,
3737
*,
3838
assistant_id: str,
39-
name: str | NotGiven = NotGiven,
39+
name: str | NotGiven = NOT_GIVEN,
4040
) -> ListRouteResponse:
4141
params = self._create_body(name=name)
4242

@@ -57,8 +57,8 @@ def modify(
5757
*,
5858
assistant_id: str,
5959
route_id: str,
60-
description: str | NotGiven = NotGiven,
61-
examples: List[str] | NotGiven = NotGiven,
60+
description: str | NotGiven = NOT_GIVEN,
61+
examples: List[str] | NotGiven = NOT_GIVEN,
6262
) -> RouteResponse:
6363
body = self._create_body(
6464
description=description,
@@ -105,7 +105,7 @@ async def list(
105105
self,
106106
*,
107107
assistant_id: str,
108-
name: str | NotGiven = NotGiven,
108+
name: str | NotGiven = NOT_GIVEN,
109109
) -> ListRouteResponse:
110110
params = self._create_body(name=name)
111111

@@ -128,8 +128,8 @@ async def modify(
128128
*,
129129
assistant_id: str,
130130
route_id: str,
131-
description: str | NotGiven = NotGiven,
132-
examples: List[str] | NotGiven = NotGiven,
131+
description: str | NotGiven = NOT_GIVEN,
132+
examples: List[str] | NotGiven = NOT_GIVEN,
133133
) -> RouteResponse:
134134
body = self._create_body(
135135
description=description,

0 commit comments

Comments
 (0)