mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-08 12:54:51 +00:00
Back to model 2.5 flash because got limit
Some checks failed
Notify on Telegram / notify (push) Has been cancelled
Some checks failed
Notify on Telegram / notify (push) Has been cancelled
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
051880b2a1
commit
23a407f1ed
1 changed files with 3 additions and 2 deletions
|
|
@ -46,7 +46,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\n<b>Powered by:</b> <code>Gemini 3 Flash</code>")
|
||||
await bmsg.edit_msg(f"{html.escape(answer)}\n\n<b>Powered by:</b> <code>Gemini 2.5 Flash</code>")
|
||||
else:
|
||||
async for chunk in response:
|
||||
if not chunk.choices or not chunk.choices[0].delta.content:
|
||||
|
|
@ -104,7 +104,7 @@ async def gemini_chatbot(_, ctx: Message, strings):
|
|||
gemini_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": ctx.input}]
|
||||
else:
|
||||
gemini_conversations[uid].append({"role": "user", "content": ctx.input})
|
||||
ai_response = await get_openai_stream_response(False, GOOGLEAI_KEY, "https://generativelanguage.googleapis.com/v1beta", "gemini-3-flash-preview", gemini_conversations[uid], msg, strings)
|
||||
ai_response = await get_openai_stream_response(False, GOOGLEAI_KEY, "https://generativelanguage.googleapis.com/v1beta", "gemini-2.5-flash", gemini_conversations[uid], msg, strings)
|
||||
if not ai_response:
|
||||
gemini_conversations[uid].pop()
|
||||
if len(gemini_conversations[uid]) == 1:
|
||||
|
|
@ -146,3 +146,4 @@ async def openai_chatbot(self, ctx: Message, strings):
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue