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