ChatGPT/Bard is good for answering documentation or common syntax questions. For actual programming, you should use a proper AI "copilot" that actually integrates into the context of your IDE, and therefore understands the syntax of your internal APIs to some extent. You will save time copy-pasting and get better results.