Skip to content

Commit

Permalink
fix: modifying type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Dec 18, 2024
1 parent b07286c commit 953910c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instructor/multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@ def is_image_params(x: Any) -> bool:
cast(ImageParams, content)
)
if isinstance(content, str):
converted_messages.append(
converted_messages.append( # type: ignore
{"role": role, "content": content, **other_kwargs}
) # type: ignore
)
else:
converted_content = convert_contents(content, mode)
converted_messages.append(
converted_messages.append( # type: ignore
{"role": role, "content": converted_content, **other_kwargs}
) # type: ignore
)
return converted_messages # type: ignore

0 comments on commit 953910c

Please sign in to comment.