Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: not given as a constant not class #244

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ai21/clients/studio/resources/beta/assistant/assistant_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
StudioResource,
)
from ai21.models.responses.route_response import RouteResponse, ListRouteResponse
from ai21.types import NotGiven
from ai21.types import NotGiven, NOT_GIVEN


class AssistantRoutes(StudioResource, BaseRoutes):
Expand Down Expand Up @@ -36,7 +36,7 @@ def list(
self,
*,
assistant_id: str,
name: str | NotGiven = NotGiven,
name: str | NotGiven = NOT_GIVEN,
) -> ListRouteResponse:
params = self._create_body(name=name)

Expand All @@ -57,8 +57,8 @@ def modify(
*,
assistant_id: str,
route_id: str,
description: str | NotGiven = NotGiven,
examples: List[str] | NotGiven = NotGiven,
description: str | NotGiven = NOT_GIVEN,
examples: List[str] | NotGiven = NOT_GIVEN,
) -> RouteResponse:
body = self._create_body(
description=description,
Expand Down Expand Up @@ -105,7 +105,7 @@ async def list(
self,
*,
assistant_id: str,
name: str | NotGiven = NotGiven,
name: str | NotGiven = NOT_GIVEN,
) -> ListRouteResponse:
params = self._create_body(name=name)

Expand All @@ -128,8 +128,8 @@ async def modify(
*,
assistant_id: str,
route_id: str,
description: str | NotGiven = NotGiven,
examples: List[str] | NotGiven = NotGiven,
description: str | NotGiven = NOT_GIVEN,
examples: List[str] | NotGiven = NOT_GIVEN,
) -> RouteResponse:
body = self._create_body(
description=description,
Expand Down
Loading