fix: Update model retrieval method in send_tenor_gif function
This commit is contained in:
parent
18d5c3d83e
commit
9eb44448a1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user