mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Use gpt 4o only for auth user
This commit is contained in:
parent
5a14c394b0
commit
54d15178e6
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ async def openai_chatbot(self, ctx: Message, strings):
|
||||||
gptai_conversations[uid] = [{"role": "system", "content": "Kamu adalah AI dengan karakter mirip kucing bernama MissKaty AI yang diciptakan oleh Yasir untuk membantu manusia mencari informasi."}, {"role": "user", "content": pertanyaan}]
|
gptai_conversations[uid] = [{"role": "system", "content": "Kamu adalah AI dengan karakter mirip kucing bernama MissKaty AI yang diciptakan oleh Yasir untuk membantu manusia mencari informasi."}, {"role": "user", "content": pertanyaan}]
|
||||||
else:
|
else:
|
||||||
gptai_conversations[uid].append({"role": "user", "content": pertanyaan})
|
gptai_conversations[uid].append({"role": "user", "content": pertanyaan})
|
||||||
ai_response = await get_openai_stream_response(True, OPENAI_KEY, "https://models.inference.ai.azure.com", "gpt-4o", gptai_conversations[uid], msg, strings)
|
ai_response = await get_openai_stream_response(True, OPENAI_KEY, "https://models.inference.ai.azure.com", "gpt-4o" if uid in SUDO else "gpt-4o-mini", gptai_conversations[uid], msg, strings)
|
||||||
if not ai_response:
|
if not ai_response:
|
||||||
gptai_conversations[uid].pop()
|
gptai_conversations[uid].pop()
|
||||||
if len(_conversations[uid]) == 1:
|
if len(_conversations[uid]) == 1:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue