Bing's version of ChatGPT/GPT4 cites sources. My limited unterstanding is that it uses your question to do a web search, brings the results into the context window, and then generates an answer that cites sources.
OpenAI could integrate StackOverflow the same way.
OpenAI could integrate StackOverflow the same way.