Skip to content

Commit

Permalink
use |
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Oct 17, 2024
1 parent ac24af5 commit 062a738
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions instructor/multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ def to_anthropic(self) -> dict[str, Any]:


def convert_contents(
contents: Union[ # noqa: UP007
list[Union[str, dict[str, Any], Image, Audio]],
str,
dict[str, Any],
Image, # noqa: UP007
Audio, # noqa: UP007
],
contents: (
str
| dict[str, Any]
| Image
| Audio
| list[str | dict[str, Any] | Image | Audio]
),
mode: Mode,
) -> Union[str, list[dict[str, Any]]]: # noqa: UP007
) -> str | list[dict[str, Any]]:
"""Convert content items to the appropriate format based on the specified mode."""
if isinstance(contents, str):
return contents
Expand Down

0 comments on commit 062a738

Please sign in to comment.