OpenAI-Unity icon indicating copy to clipboard operation
OpenAI-Unity copied to clipboard

How to solve GPT-4 turbo (gpt-4-1106-preview) error

Open kwan3854 opened this issue 2 years ago • 4 comments

edit DataTypes.cs

    public struct CreateChatCompletionResponse : IResponse
    {
        public ApiError Error { get; set; }
        public string Model { get; set; }
        public string Id { get; set; }
        public string Object { get; set; }
        public long Created { get; set; }
        public List<ChatChoice> Choices { get; set; }
        public Usage Usage { get; set; }
        // Add these fields
        public string SystemFingerprint { get; set; }
    }

now you can use gpt-4-1106-preview model.

kwan3854 avatar Nov 29 '23 21:11 kwan3854

Thank you! This is very helpful.

HUIMANDY avatar Nov 30 '23 03:11 HUIMANDY

Thank you for the advice, but I got a question that since the file DataType.cs is part of the Unity Package Cache. And any changes made will be lost. Does that mean each time we open Unity, we need to make this change?

jhinpan avatar Nov 30 '23 04:11 jhinpan

Thank you for the advice, but I got a question that since the file DataType.cs is part of the Unity Package Cache. And any changes made will be lost. Does that mean each time we open Unity, we need to make this change?

Indeed, you're correct. Since DataType.cs is part of the Unity Package Cache, any modifications you make directly to the file in the cache could be overwritten. I have submitted a pull request with the necessary changes. It would be best to wait for the merge and subsequent update of the library before proceeding.

kwan3854 avatar Nov 30 '23 08:11 kwan3854

HOW TO EDIT DATATYPES.CS

Swami39 avatar Nov 30 '23 14:11 Swami39