diff --git a/app/jobs/autotitle_conversation_job.rb b/app/jobs/autotitle_conversation_job.rb index e8d24b29..4966861a 100644 --- a/app/jobs/autotitle_conversation_job.rb +++ b/app/jobs/autotitle_conversation_job.rb @@ -7,7 +7,7 @@ class ConversationNotReady < StandardError; end def perform(conversation_id) @conversation = Conversation.find(conversation_id) - return false if @conversation.assistant.api_service.effective_token.blank? # should we use anthropic key if that's all the user has? + return false if @conversation.assistant.api_service.requires_token? && @conversation.assistant.api_service.effective_token.blank? messages = @conversation.messages.ordered.limit(4) raise ConversationNotReady if messages.empty?