Skip to content

Commit

Permalink
Fix calling private method when checking current model
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuker committed May 26, 2024
1 parent 3b4f2f1 commit 8478fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/discord_bot/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ def set_model(channel_id:, model:)
@channel_models[channel_id] = model
end

private

def conversation(channel_id)
@channel_conversations[channel_id] ||= DiscordBot::LLM::Conversation.new
end
Expand All @@ -203,6 +201,8 @@ def model(channel_id)
@channel_models[channel_id] ||= DiscordBot::LLM::Model.new
end

private

def pull_default_model
Logger.info 'Pulling default LLM model'
begin
Expand Down

0 comments on commit 8478fe0

Please sign in to comment.