From 4c5fade0a763dc437cdf932c2a9491cdbe933d08 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 23 Apr 2024 10:42:39 -0700 Subject: [PATCH] fix dale bot to work with llama3, also move stop tokens to a list i can configure --- app/bot.py | 11 ++--------- scratchpad/sandwich.py | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/app/bot.py b/app/bot.py index d1623661..fdf9bc11 100755 --- a/app/bot.py +++ b/app/bot.py @@ -28,14 +28,7 @@ async def on_ready(): # for server in bot.guilds: # if server.name in [ - # # "no officer it's hi how r u", - # "Aeturnum", - # "Naked Knights", - # "MadsenHouse", - # "Safety Zone", - # "R3 Server", - # "Thieve's Den MC", - # "Thieve's Den", + # "no officer it's hi how r u", # ]: # await server.leave() # print("Left %s" % server.name) @@ -184,7 +177,7 @@ async def on_message(ctx): "model": llm_rules["model"], "stream": False, "max_tokens": 4096, - "stop": ["hello"], + "stop": llm_rules["stop_tokens"], "frequency_penalty": 0, "presence_penalty": 0, "temperature": 0.7, diff --git a/scratchpad/sandwich.py b/scratchpad/sandwich.py index 0dbc9bd8..9dc24521 100755 --- a/scratchpad/sandwich.py +++ b/scratchpad/sandwich.py @@ -110,13 +110,26 @@ convenience_store_items = [ "Twizzlers, Red Licorice", ] wild_cards = [ - "whatever coins you have in your pocket", - "some of these Paper Clips", - "A whole jar of mustard", - "Susan B. Anthony's pubic hair", - "Seventeen tortillas", - "Your ring", + "5 Grapes", + "a half eatn Apple", + "a leftover Chicken Breast", "A spoonful of Mayonaise", + "A whole jar of mustard", + "a whole tube of gogurt", + "Butter", + "dump a carton of Orange Juice on it", + "Eggs", + "freezer burned Ice Cream", + "half a bottle of Ketchup", + "half a Leftover Pizza", + "Milk", + "Seventeen tortillas", + "some gross ass mini Pickles", + "some of these Paper Clips", + "some stale Bread", + "Susan B. Anthony's pubic hair", + "whatever coins you have in your pocket", + "Your wedding ring", ]