Giter Site home page Giter Site logo

Comments (11)

doomlaser avatar doomlaser commented on May 20, 2024 1

Thanks, I'm going to try deleting /Library/ and see if that fixes it.

from com.openai.unity.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

I don't understand your report.

from com.openai.unity.

doomlaser avatar doomlaser commented on May 20, 2024

the JSON doesn't seem to be stripped?

from com.openai.unity.

doomlaser avatar doomlaser commented on May 20, 2024

it also says the model is gpt-3.5-turbo-0301? when it should be GPT-4?

from com.openai.unity.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

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.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

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.

doomlaser avatar doomlaser commented on May 20, 2024

Hmm, could possibly be an issue with Unity and the Package manager update? I do have access

from com.openai.unity.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

The test I ran above is in a project that's using this package through the package manager

from com.openai.unity.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

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.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

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.

StephenHodgson avatar StephenHodgson commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.