fix: Correctly instantiate Part object in send_tenor_gif function
This commit is contained in:
parent
282a80f79b
commit
18d5c3d83e
@ -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"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user