Fix genai GIF selection
This commit is contained in:
parent
634c903774
commit
6b8719d948
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user