microsoft / LLMR

MIT License
31 stars 9 forks source link

Builder generates duplicated code so that the compiler reports error. #5

Closed tyleeeeee closed 1 month ago

tyleeeeee commented 2 months ago

Hi all,

I want to reproduce this repo, but I've encountered some problems. (My Unity version is 2022.3.11f1 and I also installed the Roslyn compiler.)

There's always a loop between the Builder and Compiler. I found that the code generated by the Builder is duplicated each time, so that the compiler always reports an error, even after the Inspector gives a success verdict.

螢幕擷取畫面 2024-05-21 173754

螢幕擷取畫面 2024-05-21 155001

Kappa666 commented 1 month ago

Sorry for the late response here. I've reproduced this issue and found that it's due to an update in the OpenAI API dependency that somehow sneaked in. Will update the Chatbot.cs file (just 4 lines of change) and shift the repo to depend on the newest version of the OpenAI package asap.

Kappa666 commented 1 month ago

Updated the repo with the new dependency, which should fix the issue.