mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Forgot about this
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
e070bca202
commit
2cb0518835
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ async def gemini_chatbot(_, ctx: Message, strings):
|
|||
json=json_data,
|
||||
timeout=20.0,
|
||||
)
|
||||
if response.json().get("candidates"):
|
||||
if not response.json().get("candidates"):
|
||||
return await msg.edit_msg("⚠️ Sorry, the prompt you sent maybe contains a forbidden word that is not permitted by AI.")
|
||||
await msg.edit_msg(html.escape(response.json()["candidates"][0]["content"]["parts"][0]["text"]))
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue