chatgpt 3.0 was generating text but without much reasoning, so it was dumb. In chatGPT 3.5 they integrated codex which was another neural network trained on code/large dataset of programing languages to make it write code.