diff --git a/misskaty/plugins/chatbot_ai.py b/misskaty/plugins/chatbot_ai.py index 0a852fd3..1903afee 100644 --- a/misskaty/plugins/chatbot_ai.py +++ b/misskaty/plugins/chatbot_ai.py @@ -64,7 +64,7 @@ async def get_openai_stream_response(is_stream, key, base_url, model, messages, disable_web_page_preview=True, ) else: - await bmsg.edit_msg(f"{html.escape(answer)}\n\nPowered by: GPT 5") + await bmsg.edit_msg(f"{html.escape(answer)}\n\nPowered by: DeepSeek") except APIConnectionError as e: await bmsg.edit_msg(f"The server could not be reached because {e.__cause__}") return None @@ -134,7 +134,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 dan gunakan bahasa sesuai yang saya katakan."}, {"role": "user", "content": pertanyaan}] else: 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-5-mini", gptai_conversations[uid], msg, strings) + ai_response = await get_openai_stream_response(True, OPENAI_KEY, "https://openrouter.ai/api/v1", "deepseek/deepseek-r1-0528:free", gptai_conversations[uid], msg, strings) if not ai_response: gptai_conversations[uid].pop() if len(gptai_conversations[uid]) == 1: @@ -143,3 +143,4 @@ async def openai_chatbot(self, ctx: Message, strings): gptai_conversations[uid].append({"role": "assistant", "content": ai_response}) +