AICommand icon indicating copy to clipboard operation
AICommand copied to clipboard

Suggestion: use GPT itself to fix compilation bugs

Open oliveirabruno01 opened this issue 3 years ago • 6 comments

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.

oliveirabruno01 avatar Mar 23 '23 20:03 oliveirabruno01

It would be a nice option. I'd like to give a try when I have time.

keijiro avatar Mar 23 '23 23:03 keijiro

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!

bh679 avatar Mar 29 '23 06:03 bh679

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.

AspireOne avatar Apr 02 '23 08:04 AspireOne

我在 WrapPrompt 中添加了“- Use namespaces UnityEditor & UnityEngine.\n” + ,它似乎有助于解决我见过的最常见问题。

只是一个建议。喜欢你在这里所做的一切!

thanks!great!

ConnerHua avatar Apr 24 '23 03:04 ConnerHua