Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat GPT in VR working? #117

Open
xmaymo opened this issue Mar 6, 2024 · 3 comments
Open

Chat GPT in VR working? #117

xmaymo opened this issue Mar 6, 2024 · 3 comments

Comments

@xmaymo
Copy link

xmaymo commented Mar 6, 2024

Hey guys,

Did anyone tried the project in VR?

For me everything works fine from the Unity editor but not on the Meta Quest build. I dit a test with the "microphone" permisions and it work well on the meta quest. And the openAI credentials are on the code, so I guess there's another problem.
Basically the var response = await openAI.CreateChatCompletion(request); it is not called.

Is there something I need to change to make it work for VR? Any help would be appreciate it!

Thanks!

@Firyfly
Copy link

Firyfly commented Mar 28, 2024

Sadly i am stuck at the exact same problem and havent been able to find a working solution.

I noticed that node apparently got updated, through which a configuration object is used instead of the private key, but i havent been able to make it work for now.
@srcnalt Maybe you have knowledge if the node update (if i saw it correctly) has impacted the working of this function.

So definitely would love to hear feedback or ideas from other people.
Everything is running fine for me in the unity editor, but as soon as i build it for android and sideload it on the quest 2, it stops at that function.

Hope there will be found a solution soon.
~Greetings from Germany

@xmaymo
Copy link
Author

xmaymo commented Mar 28, 2024

Sadly i am stuck at the exact same problem and havent been able to find a working solution.

I noticed that node apparently got updated, through which a configuration object is used instead of the private key, but i havent been able to make it work for now. @srcnalt Maybe you have knowledge if the node update (if i saw it correctly) has impacted the working of this function.

So definitely would love to hear feedback or ideas from other people. Everything is running fine for me in the unity editor, but as soon as i build it for android and sideload it on the quest 2, it stops at that function.

Hope there will be found a solution soon. ~Greetings from Germany

Hey Firyfly,

I figured it out after reading some other people's similar problems, the error is caused due the "Internet premission".
The trick is to be sure to disable "Force Remove Internet Permission" on Project Settings -> XR Plug-In Management -> Open XR -> Meta Quest Support, before making the build. There was a bug in the old OpenXR plugin were that permision kept reseting to true automatically. With the newest OpenXR version 1.10.0 seems that they fixed that problem.

I am using Unity 2022.3.11f1 but it should work with the newest versions as well.

Kind regards from Barcelona!

@StevenLe2012
Copy link

Have you implemented Whisper Speech to Text with the GPT model in VR @xmaymo? For me, I did so and it works well on Quest Link; however, when I go build it to Quest, I am unable to get the microphone to even pick up that I'm speaking. Super confused on why this is. I chose every single possible option from the Microphone Dropdown list, but none of them work on my Quest Build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants