For code completion, it uses an improved version of Codex[1], and for chat beta (part of Copilot X), it uses 3.5-turbo[2].
[1] https://github.blog/2023-07-28-smarter-more-efficient-coding...
[2] https://github.com/orgs/community/discussions/56975#discussi...