Skip to content

Commit

Permalink
Fix GeminiGenerator input type
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Dec 15, 2023
1 parent 27f55ff commit 212c2e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _convert_part(self, part: Union[str, ByteStream, Part]) -> Part:
raise ValueError(msg)

@component.output_types(answers=List[Union[str, Dict[str, str]]])
def run(self, parts: Variadic[List[Union[str, ByteStream, Part]]]):
def run(self, parts: Variadic[Union[str, ByteStream, Part]]):
converted_parts = [self._convert_part(p) for p in parts]

contents = [Content(parts=converted_parts, role="user")]
Expand Down

0 comments on commit 212c2e8

Please sign in to comment.