Fix genai GIF selection

This commit is contained in:
Codex 2025-06-06 05:15:34 +00:00 committed by Slipstream
parent 634c903774
commit 6b8719d948
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -4552,8 +4552,8 @@ async def send_tenor_gif(
# Generate AI selection
try:
model = genai.GenerativeModel(DEFAULT_MODEL)
response = await model.generate_content_async(
response = await cog.genai_client.aio.models.generate_content(
model=DEFAULT_MODEL,
contents=[types.Content(role="user", parts=ai_content)],
config=types.GenerateContentConfig(
temperature=0.5, # Low temperature for consistent selection