Skip to content

Commit

Permalink
FIX: lower embedding char limit yet again to reduce risk of hitting t…
Browse files Browse the repository at this point in the history
…oken limit
  • Loading branch information
merefield committed Sep 16, 2023
1 parent a73bb7e commit 5e830fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.rb
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 5e830fc

Please sign in to comment.