There is one kind of training the network underwent for writing code. There is a different kind of training the network underwent for talking to a user.
Also see here: https://www.lesswrong.com/posts/JBFHzfPkXHB2XfDGj/evolution-of-modularity
“To sum it up: modularity in the system evolves to match modularity in the environment.”
Here’s Robert Magyar Brovdi, the Commander of the Unmanned Systems Forces of the Armed Forces of Ukraine, on use of AI at the battlefield:
https://www.youtube.com/watch?v=FtUkwXCbXws