Seeding gpt (or using copilot) on snippets of your code is extremely effective. I often paste a function of my codebase before asking code questions, as in: “here is an example of a product class, generate the swagger spec for a user crud api” and it will infer how and even what kind of fields our user class has, without having seen it.