Skip to content

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

Open

Description

@kwan3854

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.

Activity

  1. HUIMANDY commented on Nov 30, 2023

    @HUIMANDY

    Thank you! This is very helpful.

  2. jhinpan commented on Nov 30, 2023

    @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?

  3. kwan3854 commented on Nov 30, 2023

    @kwan3854
    Author

    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.

  4. Swami39 commented on Nov 30, 2023

    @Swami39

    HOW TO EDIT DATATYPES.CS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions