For those of you going somewhat in on the using LLM in coding. I'm asking genuinely. I've tried some code generation, but what I struggle with is that code generated may contain methods that dont exists... or language features that have been deprecated etc.
How do you ensure that generated code is using the latest available code and methods from a library?
How do you ensure that generated code is NOT in fact using deprecated methods, functions and such.