mirror of
https://git.squeakyrat.moe/faggot-chan/
synced 2026-11-04 18:35:45 +01:00
this is why i use claude version 2
This commit is contained in:
1 parent
9fdb5f52e4
commit
f09ff1d585
2 files changed
+2
-2
No files matched your search
@@ -213,7 +213,7 @@ async def geminichat(websocket):
|
||||
messages.append({"role": "user", "content": "\n".join(current_user_lines)})
|
||||
|
||||
# final isolated turn — the specific message she needs to reply to
|
||||
messages.append({"role": "user", "content": f"[responding to]: {nots(user_input)})
|
||||
messages.append({"role": "user", "content": f"[responding to]: {nots(user_input)}"})
|
||||
|
||||
# make sure we start with a user turn (gemini rejects empty parts so no empty string here)
|
||||
if messages and messages[0]["role"] != "user":
|
||||
|
||||
@@ -173,7 +173,7 @@ async def ollamachat(websocket):
|
||||
messages.append({"role": "user", "content": "\n".join(current_user_lines)})
|
||||
|
||||
# final isolated turn — the specific message she needs to reply to
|
||||
messages.append({"role": "user", "content": f"[responding to]: "{nots(user_input)})
|
||||
messages.append({"role": "user", "content": f"[responding to]: {nots(user_input)}"})
|
||||
|
||||
# ollama only takes images (no audio/video/pdf), and only on the final turn so history stays text
|
||||
images = [base64.b64decode(m["data"]) for m in media if m["mime_type"].startswith("image/")]
|
||||
|
||||
Reference in new issue
Block a user