fix: Update model instantiation in send_tenor_gif function

This commit is contained in:
Slipstream 2025-05-28 15:31:39 -06:00
parent 9eb44448a1
commit e5fc915dc5
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -3113,7 +3113,7 @@ async def send_tenor_gif(cog: commands.Cog, query: str, limit: int = 8) -> Dict[
# Generate AI selection
try:
model = cog.genai_client.get_model(DEFAULT_MODEL)
model = genai.GenerativeModel(DEFAULT_MODEL)
response = await model.generate_content_async(
contents=[types.Content(role="user", parts=ai_content)],
config=types.GenerateContentConfig(