From 5e830fc777caf470f28a1d70868adc682cdaae38 Mon Sep 17 00:00:00 2001 From: merefield Date: Sat, 16 Sep 2023 20:59:01 +0100 Subject: [PATCH] FIX: lower embedding char limit yet again to reduce risk of hitting token limit --- plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index e85df8e..76ae3c4 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: 0.43 +# version: 0.44 # authors: merefield # url: https://github.com/merefield/discourse-chatbot @@ -24,7 +24,7 @@ module ::DiscourseChatbot POST_TYPES_REGULAR_ONLY = [1] POST_TYPES_INC_WHISPERS = [1, 4] EMBEDDING_MODEL = "text-embedding-ada-002".freeze - EMBEDDING_CHAR_LIMIT = 13500 + EMBEDDING_CHAR_LIMIT = 13250 def progress_debug_message(message) if SiteSetting.chatbot_enable_verbose_console_response_progress_logging