srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
672 stars 150 forks source link

OpenAI Package cannot import #2

Closed pablopalma closed 1 year ago

pablopalma commented 1 year ago

Hi, i'm following your tutorial, but i'm having issues to import OpenAI package from git URL.

Some idea how fix it? It seems like a issue from the package git.

Screenshot_64

srcnalt commented 1 year ago

Hi, @pablopalma I just tried to import in 2020.3 LTS, 2021.3 LTS, and 2022.1. all worked fine without any JSON parse errors. Could you tell me which Unity version are you using, so I can try to replicate the issue there?

srcnalt commented 1 year ago

Just checking the package.json again in VS code I realized Rider added a hidden BOM and I just removed it. In GitHub changes it still looks like nothing changed but this should help with the issue. Change is here: https://github.com/srcnalt/OpenAI-Unity/commit/21fe19ff87983952c313eb8f74d2b81aba1b9dd2

pablopalma commented 1 year ago

Hi, @srcnalt i imported in 2020.3.43 LTS and now is working. I think was the package.json change. I think we can close the issue. Thanks!