From 8a714e68b5d278dbc52a4d67740ee9f3424ba2fe Mon Sep 17 00:00:00 2001 From: Sergei Miami Date: Fri, 17 May 2024 14:45:08 +0300 Subject: [PATCH] Trying to pass the name but make it invisible for ChatGPT Because he's trying to use it in answers --- src/Plugin/OpenAi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/OpenAi.php b/src/Plugin/OpenAi.php index f67d161..f583c17 100644 --- a/src/Plugin/OpenAi.php +++ b/src/Plugin/OpenAi.php @@ -145,7 +145,7 @@ public function onText(Update $update) // add to conversation $messages[] = [ 'role' => $is_me ? "assistant" : "user", - 'name' => $this->prepareName($message->from()->name() ), + 'name' => $is_me ? "Joker" : md5("user".$message->from()->id()), "content" => $text, ];