mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Not needed, biar universal aja
This commit is contained in:
parent
7d0e5040c2
commit
efe8905ef1
1 changed files with 2 additions and 2 deletions
|
|
@ -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": "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."}
|
||||
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."}
|
||||
# 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": "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."
|
||||
"text": "Kamu adalah AI dengan karakter mirip kucing bernama MissKaty AI yang diciptakan oleh Yasir untuk membantu manusia mencari informasi."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue