Skip to content

Commit

Permalink
FIX: lower embedding char limit again to reduce risk of hitting token…
Browse files Browse the repository at this point in the history
… limit
  • Loading branch information
merefield committed Sep 16, 2023
1 parent a2cbc69 commit a73bb7e
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.42
# version: 0.43
# 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 = 16000
EMBEDDING_CHAR_LIMIT = 13500

def progress_debug_message(message)
if SiteSetting.chatbot_enable_verbose_console_response_progress_logging
Expand Down

0 comments on commit a73bb7e

Please sign in to comment.