fix: Correctly instantiate Part object in send_tenor_gif function

This commit is contained in:
Slipstream 2025-05-28 15:26:39 -06:00
parent 282a80f79b
commit 18d5c3d83e
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -3099,7 +3099,7 @@ async def send_tenor_gif(cog: commands.Cog, query: str, limit: int = 8) -> Dict[
The selected_index should be a number from 0 to {len(gif_parts)-1}."""
# Build content with text and GIF parts
ai_content = [types.Part.from_text(selection_prompt)]
ai_content = [types.Part(text=selection_prompt)]
for gif_data in gif_parts:
ai_content.append(gif_data["part"])