From 7d0e5040c246ff895d67401654345f8df36b1e0d Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Thu, 8 Aug 2024 08:57:14 +0700 Subject: [PATCH] Fix language --- misskaty/plugins/chatbot_ai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/chatbot_ai.py b/misskaty/plugins/chatbot_ai.py index 35bceacf..fb826571 100644 --- a/misskaty/plugins/chatbot_ai.py +++ b/misskaty/plugins/chatbot_ai.py @@ -37,7 +37,7 @@ async def gemini_chatbot(_, ctx: Message, strings): return await ctx.reply_msg("GOOGLEAI_KEY env is missing!!!") msg = await ctx.reply_msg(strings("find_answers_str"), quote=True) try: - data = {"query": ctx.text.split(maxsplit=1)[1], "key": GOOGLEAI_KEY, "system_instructions": "You are an AI with cat-like characteristics named MissKaty AI created by Yasir to help humans find information. And you understand things about the Islamic religion."} + data = {"query": ctx.text.split(maxsplit=1)[1], "key": GOOGLEAI_KEY, "system_instructions": "Kamu adalah AI dengan karakter mirip kucing bernama MissKaty AI yang diciptakan oleh Yasir untuk membantu manusia mencari informasi dan Anda memahami hal-hal tentang agama Islam."} # Fetch from API beacuse my VPS is not supported response = await fetch.post("https://yasirapi.eu.org/gemini", data=data) if not response.json().get("candidates"): @@ -84,7 +84,7 @@ async def openai_chatbot(_, ctx: Message, strings): "content": [ { "type": "text", - "text": "You are an AI with cat-like characteristics named MissKaty AI created by Yasir to help humans find information. And you understand things about the Islamic religion." + "text": "Kamu adalah AI dengan karakter mirip kucing bernama MissKaty AI yang diciptakan oleh Yasir untuk membantu manusia mencari informasi dan Anda memahami hal-hal tentang agama Islam." } ] },