Comments (6)
@JensDijkgraaf we have the same issue... what is the line you have added to the manifest?
Its not visible in your post 😄
In our case its working on the Editor as well but on iOS we are seeing the issue from above.
from openai-unity.
@tobivr my bad, the line you need to add is:
<uses-permission android:name="android.permission.INTERNET" />
as can be seen in the line this is specifically for android, but i can imagine there would be a similar but slightly different solution for iOS, hope it helps!
from openai-unity.
Hi @Exiro001, the received response is not a JSON, so it might me a message about quota limit or something else. You can print out the response before it gets parsed and see what the error says.
from openai-unity.
I've encountered the same error but I haven't reached my quota limit. I just bought 5$ worth of tokens / quota. The error I see in VR is:
JsonSerializationException: No JSON Content found and type 'OpenAI.CreateAudioResponse' is not nullable. Path '', line 0, position 0
It works in the editor but doesn't work in VR. Since the API key is being read from auth.json, I manually placed the API key inside the script instead inside the = new OpenAI("apikey", "orgkey");. To my surprise, I still receive the same error.
from openai-unity.
I have had the same issue, after adding the API/Organization key had the same issue still, what solved it for me is going to: build settings -> player settings -> publishing settings, then enable Custom Main Manifest. Go to the manifest file and add the following line:
within the manifest class. Hope this helps!
from openai-unity.
I added in what you said @JensDijkgraaf, however, I am still receiving the same issue. Any other ideas perhaps?
EDIT/UPDATE: After having issues, I realized I needed to do something similar to what was done here #117 --> with the XR settings and force internet permissions. Thank you all for your help!
from openai-unity.
Related Issues (20)
- JsonSerializationException: Could not find member 'system_fingerprint' on object of type 'CreateChatCompletionResponse'. Path 'system_fingerprint', line 21, position 23. HOT 5
- OpenAI Text To Speech Support? HOT 5
- OpenAI Whisper Broken
- JSON Mode HOT 8
- logprobs missing from datatype ChatChoice HOT 8
- JsonSerializationException: Could not find member 'logprobs' on object of type 'ChatChoice'. Path 'choices[0].logprobs', line 13, position 17. HOT 3
- JsonSerializationException: Could not find member 'logprobs' on object of type 'ChatChoice'. Path 'choices[0].logprobs', line 1, position 231. HOT 1
- JsonSerializationException: Could not find member 'logprobs' on object of type 'ChatChoice'. HOT 3
- JSON Serialization Exception on Android, Not in Editor HOT 3
- Chat GPT in VR working? HOT 3
- JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
- [FEATURE REQUEST] Add ToolChoice to CreateRunRequest method
- Connection with your own ChatGPT trained
- Sending base64 encoded Image to GPT-4o via API in Unity
- JsonReaderException: Unterminated string. Expected delimiter: ". Path 'object', line 1, position 68. HOT 13
- Issue with Sending Image URL to GPT-4o in Unity
- Build for Oculus Quest 3 not giving a response from OpenAI HOT 11
- How to solve GPT-4 turbo (gpt-4-1106-preview) error HOT 4
- Meeting error with JsonSerializationException when trying the ChatCompletion HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openai-unity.