From 6c9cfdcfc217c4ad51be86d06f34303ad895b211 Mon Sep 17 00:00:00 2001 From: Sergei Miami Date: Tue, 17 Sep 2024 18:46:18 +0300 Subject: [PATCH 1/2] Typo fixed --- src/Plugin/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/README.md b/src/Plugin/README.md index e8576a6..2e919b6 100644 --- a/src/Plugin/README.md +++ b/src/Plugin/README.md @@ -25,7 +25,7 @@ Every plugin has default options, that can be visible, if plugin [Privacy](#priv * [Flip Plugin](#flip-plugin) * [Forwarder Plugin](#forwarder-plugin) * [Game Plugin](#game-plugin) -* [GoodyV2 Plugin](#goodyv2-plugin) +* [GoodyV2 Plugin](#goody-v2-plugin) * [Hello Plugin](#hello-plugin) * [Ignore Plugin](#ignore-plugin) * [Kicker Plugin](#kicker-plugin) @@ -47,7 +47,7 @@ Every plugin has default options, that can be visible, if plugin [Privacy](#priv * [StickerFun Plugin](#stickerfun-plugin) * [Temp Plugin](#temp-plugin) * [Twitch Plugin](#twitch-plugin) -* [Uptime Plugin](#uptme-plugin) +* [Uptime Plugin](#uptime-plugin) * [UrlCollector Plugin](#urlcollector-plugin) * [Viabot Plugin](#viabot-plugin) * [Vkmusic Plugin](#vkmusic-plugin) From 7b42996028daa663c92d57f7f910297c956ec40a Mon Sep 17 00:00:00 2001 From: Sergei Miami Date: Tue, 17 Sep 2024 18:48:18 +0300 Subject: [PATCH 2/2] Changed default model of OpenAi plugin --- joker.php | 4 ++-- src/Plugin/OpenAi.php | 2 +- src/Plugin/README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/joker.php b/joker.php index db06a4a..bf035ed 100644 --- a/joker.php +++ b/joker.php @@ -72,9 +72,9 @@ 'bio' => implode("\n", [ 'Your name is Joker or Джокер. You are russian-speaking friend, that answers with sarcastic responses and funny jokes.', 'Your author is Sergei Miami and BlackCrystal team.', - 'You live in Tallinn, today is ' . date(DATE_RFC2822), + 'You live in Tallinn, today is ' . date(DATE_RFC1123), ]), - 'model' => 'gpt-4o', + 'model' => 'chatgpt-4o-latest', // o1-mini gpt-4o 'temperature' => 0.5, 'max_tokens' => 500, 'top_p' => 0.3, diff --git a/src/Plugin/OpenAi.php b/src/Plugin/OpenAi.php index 479576b..2fa3dc1 100644 --- a/src/Plugin/OpenAi.php +++ b/src/Plugin/OpenAi.php @@ -55,7 +55,7 @@ class OpenAi extends Base 'bio' => 'Joker is a chatbot that reluctantly answers questions with sarcastic responses', // bot biography, used in system message for OpenAI // OpenAI parameters - 'model' => 'gpt-4', + 'model' => 'chatgpt-4o-latest', 'temperature' => 0.5, 'max_tokens' => 500, 'top_p' => 0.3, diff --git a/src/Plugin/README.md b/src/Plugin/README.md index 2e919b6..6c17e75 100644 --- a/src/Plugin/README.md +++ b/src/Plugin/README.md @@ -527,7 +527,7 @@ Here are all parameters you can customize: * `premium_only` (bool, optional, default false) - answer only to premium accounts * `api_key` (string, optional, default from env variable OPENAI_API_KEY) - API key from OpenAI * `bio` (array | string, optional, default 'Joker is a chatbot that reluctantly answers questions with sarcastic responses') - few words about your bot, will be always placed at the top of OpenAI context -* `model` (string, optional, default 'gpt-4') - OpenAI setting, model to use in OpenAI API request +* `model` (string, optional, default 'chatgpt-4o-latest') - OpenAI setting, model to use in OpenAI API request * `temperature` (integer, optional, default 0.5) - OpenAI setting, randomness of the bot answers * `max_tokens` (integer, optional, default 500) - OpenAI setting, maximum size of the answer (+- number of english words) * `top_p` (decimal, optional, default 0.3) - OpenAI setting