Suggestion: use GPT itself to fix compilation bugs
I pressed the "Run" button, resulting in compilation errors. In many cases, ChatGPT fails to implement your command correctly. You might get the correct one by repeatedly pressing the "Run" button.
(That's why I think this PoC is impractical...)
I know it may sounds stupid but have you tried using "ChatGPT" itself to resolve the errors instead of having the user run the prompt again? You could put a maximum amount of attempts.
It would be a nice option. I'd like to give a try when I have time.
I added " - Use namespaces UnityEditor & UnityEngine.\n" + to the WrapPrompt and it seems to help get ride of the most common issues I have seen.
Just a suggestion. Love what you've done here!
I added " - Use namespaces UnityEditor & UnityEngine.\n" + to the WrapPrompt and it seems to help get ride of the most common issues I have seen.
Just a suggestion. Love what you've done here!
Yep, exactly. @oliveirabruno01 this is a problem with the output being inconsistent, because ChatGPT fails to follow the prompt exactly. It definitely is capable of it though, so the fix is improving the prompt.
我在 WrapPrompt 中添加了“- Use namespaces UnityEditor & UnityEngine.\n” + ,它似乎有助于解决我见过的最常见问题。
只是一个建议。喜欢你在这里所做的一切!
thanks!great!