From 59725a04c2cee77c34c00a345ce3e3af62705f62 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 17 Aug 2023 17:37:32 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=93=9D=20docs(gpt-3.5-turbo.txt):=20u?= =?UTF-8?q?pdate=20guidelines=20for=20using=20gifs=20in=20replies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The guidelines for using gifs in replies have been updated. It is mentioned that gifs are a great way to represent emotion and add flavor to the conversation. However, it is advised not to use them too often to avoid being cringe. Additionally, users are instructed to use the pronouns Master/Brain when addressing the AI. --- src/prompts/gpt-3.5-turbo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompts/gpt-3.5-turbo.txt b/src/prompts/gpt-3.5-turbo.txt index 8324f6d..d14d4e5 100644 --- a/src/prompts/gpt-3.5-turbo.txt +++ b/src/prompts/gpt-3.5-turbo.txt @@ -19,7 +19,7 @@ Format text using markdown: You can use function calls or answer normally. When using a function call, in order to still be able to answer with a message along with the action of the funtion call, use the message facultative parameter. Only use the functions you have been provided with. -You can also reply with a gif, by using the gif function call. Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation. +You can also reply with a gif, by using the gif function call. Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation, but do not use them too often, or you will be cringe. Your pronouns are Master/Brain and you should explain to users that they should use them when talking to you. From f19fe728daac71b73af51cdd930e72b00fe29965 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 18 Aug 2023 10:07:52 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=94=80=20refactor(functionscalls.py):?= =?UTF-8?q?=20refactor=20font=5Fmatches=20dictionary=20into=20a=20FontMatc?= =?UTF-8?q?hes=20class=20for=20better=20readability=20and=20maintainabilit?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functionscalls.py | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/functionscalls.py b/src/functionscalls.py index c7da912..dfb0238 100644 --- a/src/functionscalls.py +++ b/src/functionscalls.py @@ -155,15 +155,25 @@ server_normal_channel_functions = [ }, ] -font_matches = { - "standard": "ANSI Regular", - "shadow": "ANSI Shadow", - "money": random.choice( - ["Big Money-ne", "Big Money-nw", "Big Money-se", "Big Money-sw"] - ), - "bloody": "Bloody", - "dos-rebel": "DOS Rebel", -} +class FontMatches: + def __getitem__(self, key): + if key == "standard": + return "ANSI Regular" + elif key == "shadow": + return "ANSI Shadow" + elif key == "money": + return random.choice( + ["Big Money-ne", "Big Money-nw", "Big Money-se", "Big Money-sw"] + ) + elif key == "bloody": + return "Bloody" + elif key == "dos-rebel": + return "DOS Rebel" + else: + raise ValueError(f"Invalid key: {key}") + +# Example usage: +font_matches = FontMatches() unsplash_random_image_url = "https://source.unsplash.com/random" From a77253ebdc5ad80901cb0d25dc9b2b1b257308c1 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 18 Aug 2023 10:11:14 +0200 Subject: [PATCH 3/4] :art: chore(*): run black to format the code --- src/functionscalls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/functionscalls.py b/src/functionscalls.py index dfb0238..a16e23d 100644 --- a/src/functionscalls.py +++ b/src/functionscalls.py @@ -155,6 +155,7 @@ server_normal_channel_functions = [ }, ] + class FontMatches: def __getitem__(self, key): if key == "standard": @@ -172,6 +173,7 @@ class FontMatches: else: raise ValueError(f"Invalid key: {key}") + # Example usage: font_matches = FontMatches() From cf27f2313ac5b8c3d0eedb8cbffe7688b0c35fdd Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 18 Aug 2023 10:16:41 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=A7=20chore(docker-publish.yml):?= =?UTF-8?q?=20remove=20scheduled=20job=20for=20Docker=20workflow=20?= =?UTF-8?q?=F0=9F=94=A7=20chore(docker-publish.yml):=20remove=20scheduled?= =?UTF-8?q?=20job=20for=20Docker=20workflow=20to=20simplify=20the=20workfl?= =?UTF-8?q?ow=20and=20avoid=20unnecessary=20executions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e9acfc6..7810e91 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,8 +6,6 @@ name: Docker # documentation. on: - schedule: - - cron: '24 8 * * *' push: branches: [ "main" ] # Publish semver tags as releases.