-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
When using GPT-4 with ChatRequest, get a bunch of other stuff in the received string #53
Comments
I don't understand your report. |
the JSON doesn't seem to be stripped? |
it also says the model is gpt-3.5-turbo-0301? when it should be GPT-4? |
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); |
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. |
Hmm, could possibly be an issue with Unity and the Package manager update? I do have access |
The test I ran above is in a project that's using this package through the package manager |
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. |
Thanks, I'm going to try deleting /Library/ and see if that fixes it. |
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. |
If you don't feel comfortable sharing this information on GitHub you can always DM me on discord |
Bug Report
when I make a ChatRequest, the result string starts with:
then the normal content, then ends with:
The text was updated successfully, but these errors were encountered: