aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 2c188a6..6e3fec2 100644
--- a/main.py
+++ b/main.py
@@ -120,7 +120,7 @@ async def ollamachat(websocket):
return True
return False
- BOT_NAME = "Faggot-chan"
+ BOT_NAME = "Faggot-chan" #i'll make this a variable later you can edit
# parse shortterm lines into (speaker, text) pairs
def parse_line(line):
@@ -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)}\n(that is the newest message and the only one you answer, the lines above are just context. only the name that starts it is speaking to you, everyone else is someone else)"})
+ 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/")]