You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing the package in Unity I get the Error:
_[Package Manager Window] Error adding package: https://github.com/srcnalt/OpenAI-Unity.git.
Unable to add package [https://github.com/srcnalt/OpenAI-Unity.git]:
Error when executing git command. fatal: not in a git directory
I already get an error message in Unity when opening the package manager:
[Package Manager Window] Error searching for packages. An error occurred, likely on the server. Please try again later.
Unable to perform online search:
Request [GET https://packages.unity.com/-/api/search?host=editor&provider=enterprise] failed with status code [502]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Not sure wether it has anything to do with the error importing the package here.
I'm a complete amateur using Unity so any help is appreciated!
You need to have git installed, unfortunately Unity does not install it right off the bat. Installing any package via git URL will require it. Make sure to restart your PC after git installation.
I am facing the same issue - I have already git installed and were able to import other packages via UPM but not this one. I already have git installed:
Now I ra n into another challenge - I am playgaround with your ChatGPT Sample and added there my API Key. When run the scene and chat with the bot I get this error:
I did not change anything in the code beside adding my key.
Is there server issues from OpenAP? Did you had this problem before?
Activity
Brndis commentedon Nov 13, 2023
Update: This might be due to a current Unity Service Incident listet on their incident page under package error as "major incident"
valeriegp commentedon Nov 17, 2023
I am also unable to import the package...
donye0001 commentedon Mar 11, 2024
I am also unable to import the package...
srcnalt commentedon Mar 11, 2024
You need to have git installed, unfortunately Unity does not install it right off the bat. Installing any package via git URL will require it. Make sure to restart your PC after git installation.
https://git-scm.com
ZaidZaim commentedon Apr 2, 2024
Hey @srcnalt
I am facing the same issue - I have already git installed and were able to import other packages via UPM but not this one. I already have git installed:

Thank you in advance!
Awesome tutorial series!
srcnalt commentedon Apr 2, 2024
Hi @ZaidZaim, can you make sure it does not have a space at the end of the URL?
ZaidZaim commentedon Apr 2, 2024
Hi @srcnalt
Amazing, works thank you for the advice!
Now I ra n into another challenge - I am playgaround with your ChatGPT Sample and added there my API Key. When run the scene and chat with the bot I get this error:

I did not change anything in the code beside adding my key.
Is there server issues from OpenAP? Did you had this problem before?
Thank you so much!
Zaid
srcnalt commentedon Apr 2, 2024
Hi @ZaidZaim, it seems like OpenAI side error. Can you try using VPN? APIs are blocked in some countries, it might be the reason.
ZaidZaim commentedon Apr 2, 2024
Hi @srcnalt
I am not sure I can run VPN.
Does it help I turn off firewalls?
Do you think is there any work around?
Thank you
ZaidZaim commentedon Apr 2, 2024
hey @srcnalt
I am using actually the API for personal use - I were surprized when I saw it's actually paid:

Am I on a right track?
Best Wishes
Zaid