wrap definition of gptboxtext and friends in a conditional test