C# WPF application for the API

I prefer to use C#. I requested Perplexity to generate a C# WPF application that accepts user input as a prompt, sends the prompt to the Perplexity API and displays the model’s response within the application interface. It took Perplexity 3 attempts to get it right. First there was an incompatibility with the way Perplexity thought the current version of the ChatGPT library is used. The second attempt compiled but during execution it expected a ChatGPT key. The third attempt works. If it helps I can share the version I have. Where should I do that? Would it be better to share the entire WPF application or just the parts relevant to the API?