fix: Update model retrieval method in send_tenor_gif function

This commit is contained in:
Slipstream 2025-05-28 15:28:26 -06:00
parent 18d5c3d83e
commit 9eb44448a1
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.models.get(DEFAULT_MODEL)
model = cog.genai_client.get_model(DEFAULT_MODEL)
response = await model.generate_content_async(
contents=[types.Content(role="user", parts=ai_content)],
config=types.GenerateContentConfig(