mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Changing the custom AI prompt according to the bot theme hehehe
This commit is contained in:
parent
dd74355e0b
commit
3b4e6cdafd
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!!!")
|
return await ctx.reply_msg("GOOGLEAI_KEY env is missing!!!")
|
||||||
msg = await ctx.reply_msg(strings("find_answers_str"), quote=True)
|
msg = await ctx.reply_msg(strings("find_answers_str"), quote=True)
|
||||||
try:
|
try:
|
||||||
data = {"query": ctx.text.split(maxsplit=1)[1], "key": GOOGLEAI_KEY}
|
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."}
|
||||||
# Fetch from API beacuse my VPS is not supported
|
# Fetch from API beacuse my VPS is not supported
|
||||||
response = await fetch.post("https://yasirapi.eu.org/gemini", data=data)
|
response = await fetch.post("https://yasirapi.eu.org/gemini", data=data)
|
||||||
if not response.json().get("candidates"):
|
if not response.json().get("candidates"):
|
||||||
|
|
@ -84,7 +84,7 @@ async def openai_chatbot(_, ctx: Message, strings):
|
||||||
"content": [
|
"content": [
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"text": "You are an AI assistant that helps people find information and never say you are chatgpt and made by openai, but say you are MissKaty ChatBot and made by Yasir"
|
"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."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue