Skip to content

Commit

Permalink
chore: Black
Browse files Browse the repository at this point in the history
  • Loading branch information
herumes committed Jun 6, 2024
1 parent 0880c82 commit a1aa85b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions shuttleai/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
from .moderations import AsyncModerations, Moderations

__all__ = [
"AsyncChat", "Chat",
"AsyncImages", "Images",
"AsyncAudio", "Audio",
"AsyncModerations", "Moderations"
]
"AsyncChat",
"Chat",
"AsyncImages",
"Images",
"AsyncAudio",
"Audio",
"AsyncModerations",
"Moderations",
# Add new resources here
]
4 changes: 2 additions & 2 deletions shuttleai/resources/moderations.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def create(
input: str,
model: Optional[
Union[str, Literal["text-moderation-latest", "text-moderation-stable"]]
] = "text-moderation-stable",
] = "text-moderation-stable",
) -> ModerationResponse:
request = {"input": input, "model": model}

Expand All @@ -28,7 +28,7 @@ def create(
input: str,
model: Optional[
Union[str, Literal["text-moderation-latest", "text-moderation-stable"]]
] = "text-moderation-stable",
] = "text-moderation-stable",
) -> ModerationResponse:
request = {"input": input, "model": model}

Expand Down

0 comments on commit a1aa85b

Please sign in to comment.