Comments (11)
Thanks, I'm going to try deleting /Library/ and see if that fixes it.
from com.openai.unity.
I don't understand your report.
from com.openai.unity.
the JSON doesn't seem to be stripped?
from com.openai.unity.
it also says the model is gpt-3.5-turbo-0301? when it should be GPT-4?
from com.openai.unity.
I'm not sure what exactly you're doing but it works fine for me on this end with gpt-4.
var api = new OpenAIClient();
var gpt4 = await api.ModelsEndpoint.GetModelDetailsAsync("gpt-4");
var chatPrompts = new List<ChatPrompt>
{
new ChatPrompt("system", "You are a helpful assistant."),
new ChatPrompt("user", "Who won the world series in 2020?"),
new ChatPrompt("assistant", "The Los Angeles Dodgers won the World Series in 2020."),
new ChatPrompt("user", "Where was it played?"),
};
var chatRequest = new ChatRequest(chatPrompts, gpt4);
var result = await api.ChatEndpoint.GetCompletionAsync(chatRequest);
Debug.Log(result.FirstChoice);
from com.openai.unity.
I couldn't tell you one that's the case. When I put it in, I get back the right model. It could be you may not have access yet.
from com.openai.unity.
Hmm, could possibly be an issue with Unity and the Package manager update? I do have access
from com.openai.unity.
The test I ran above is in a project that's using this package through the package manager
from com.openai.unity.
I just updated all the unit tests to use gpt-4 and they all passed for me as well. If there's something more specific you'd like me to test let me know. Otherwise I'm gonna keep this once closed for now until you can give me a easier repro.
from com.openai.unity.
It's also hard to parse out exactly what you're trying to tell me before.
Could you try giving me the whole JSON string? It looks like that your response from the server is malformed more than anything.
from com.openai.unity.
If you don't feel comfortable sharing this information on GitHub you can always DM me on discord
from com.openai.unity.
Related Issues (20)
- stop/abort a .StreamCompletionAsync() HOT 1
- Threads? HOT 1
- Scanning for OpenAIConfiguration resources is very slow when one doesn't even exist HOT 3
- Assistant API HOT 1
- Easily Swap Endpoints to non OpenAI/Microsoft sources HOT 2
- Message.Contents was a string and is now an object HOT 3
- Add Assistants Endpoint HOT 4
- Add Threads Endpoint HOT 1
- JSON mode HOT 4
- WebGL Build Local Cache HOT 10
- AudioTranscriptionRequest AudioClip Encoding Issues HOT 4
- CreateSpeechAsync doesn't work on WebGL builds HOT 5
- ChatEndpoint GetCompletionAsync receiving response code 500 Invalid Headers when CORS is not set up properly HOT 5
- getting errors about content filters consistently since today HOT 2
- Failed to find valid configuration when passing api string in OpenAIClient.ctr HOT 6
- Failed to find a valid OpenAIConfiguration, when using environment variables or .openai in home dir HOT 5
- iOS: JsonSerializationException: Cannot deserialize readonly or fixed size dictionary: System.Collections.Generic.IReadOnlyDictionary HOT 22
- Bad performance when calling the constructor AudioTranscriptionRequest(AudioClip) HOT 3
- JsonSerializationOptions is inaccessible due to its protection level HOT 2
- Error when using the library on a Meta Quest 3 HOT 1
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 com.openai.unity.