Roland Berger interview question

When ChatGPT does a translation, is it using a decoder-only architecture or does it employ an encoder?