From c62e9797d7c2b468f4fd6418382e79b415adb5ed Mon Sep 17 00:00:00 2001 From: merefield Date: Tue, 15 Oct 2024 12:42:37 +0100 Subject: [PATCH] FIX: welcome prompt wrong key --- app/controllers/discourse_chatbot/chatbot_controller.rb | 2 +- plugin.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/discourse_chatbot/chatbot_controller.rb b/app/controllers/discourse_chatbot/chatbot_controller.rb index 30789cd..3537d22 100644 --- a/app/controllers/discourse_chatbot/chatbot_controller.rb +++ b/app/controllers/discourse_chatbot/chatbot_controller.rb @@ -28,7 +28,7 @@ def start_bot_convo start_bot = ::DiscourseChatbot::OpenAiBotRag.new(opts, false) system_message = { "role": "system", "content": I18n.t("chatbot.prompt.system.rag.private", current_date_time: DateTime.current) } - assistant_message = { "role": "assistant", "content": I18n.t("chatbot.prmopt.quick_access_kick_off.announcement") } + assistant_message = { "role": "assistant", "content": I18n.t("chatbot.prompt.quick_access_kick_off.announcement") } system_message_suffix = start_bot.get_system_message_suffix(opts) system_message[:content] += " " + system_message_suffix diff --git a/plugin.rb b/plugin.rb index d89f331..b1d3798 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-chatbot # about: a plugin that allows you to have a conversation with a configurable chatbot in Discourse Chat, Topics and Private Messages -# version: 1.2.0 +# version: 1.2.1 # authors: merefield # url: https://github.com/merefield/discourse-chatbot