I'd rather add the output parser to LLMChain, because PromptTemplate is not meant to handle any output tasks (it is meant to handle the input).
From LLMChain class:
output_parser: BaseLLMOutputParser = Field(default_factory=StrOutputParser)