mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Forgot slice
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
da6b6e5a4c
commit
1bc29d25c6
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ async def gemini_chatbot(_, ctx: Message, strings):
|
|||
msg = await ctx.reply_msg(strings("find_answers_str"), quote=True)
|
||||
try:
|
||||
response = await fetch.get(
|
||||
f'https://yasirapi.eu.org/gemini?query={ctx.text.split(maxsplit=1)}'
|
||||
f'https://yasirapi.eu.org/gemini?query={ctx.text.split(maxsplit=1)[1]}'
|
||||
)
|
||||
if not response.json().get("candidates"):
|
||||
await ctx.reply_msg("⚠️ Sorry, the prompt you sent maybe contains a forbidden word that is not permitted by AI.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue