microsoft / LLMR

MIT License
58 stars 17 forks source link

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

Closed tyleeeeee closed 6 months ago

tyleeeeee commented 6 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 6 months 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 6 months ago

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