From 31dc90187acff627c149e81a82debd0b8a7989ff Mon Sep 17 00:00:00 2001 From: zongor Date: Sun, 24 Sep 2023 20:22:49 -0400 Subject: [PATCH] clean --- README.md | 4 ++-- marx.py => bot.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) rename marx.py => bot.py (89%) diff --git a/README.md b/README.md index 92042ba..7aa2d02 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# marx-bot +# ai-bot -A llama.cpp chatbot which will answer questions on various topics as if it were karl marx. \ No newline at end of file +A llama.cpp chatbot which will answer questions on various topics. \ No newline at end of file diff --git a/marx.py b/bot.py similarity index 89% rename from marx.py rename to bot.py index a6a4a2a..e455dc5 100755 --- a/marx.py +++ b/bot.py @@ -37,13 +37,11 @@ async def on_message(message: discord.Message): if f"""<@{bot.user.id}>""" in message.content: async with message.channel.typing(): - question = f"""Text transcript of a never ending dialog, where {message.author} interacts with Karl Marx. + question = f"""Text transcript of a never ending dialog, where {message.author} interacts with Karl AI. Karl is helpful, kind, honest, friendly, good at writing and never fails to answer {message.author}’s requests immediately and with details and precision. There are no annotations like (30 seconds passed...) or (to himself), just what {message.author} and Karl say aloud to each other. The dialog lasts for years, the entirety of it is shared below. It's 10000 pages long. - {message.author}: What is Communism? - Karl Marx: Communism is the doctrine of the conditions of the liberation of the proletariat. {message.author}: {message.content}""" msg = llm(question, max_tokens=256, stop=[f"""{message.author}"""], echo=True)[ "choices"][0]["text"][len(question):]