Skip to content
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

JsonSerializationException: Could not find member 'logprobs' on object of type 'ChatChoice'. Path 'choices[0].logprobs', line 13, position 17. #108

Closed
MrKamikazee opened this issue Dec 15, 2023 · 3 comments

Comments

@MrKamikazee
Copy link

I don't know what happen, but yesterady this work, and today not.

Steps to reproduce the behavior:

  1. Play the project
  2. Send some message
  3. Wait for the error

image

  • OS: Windows 11
  • Unity Version: 2022.3.15f1
  • Plugin Version: Last (0.1.16)
@mhhk88
Copy link

mhhk88 commented Dec 16, 2023

The same thing happened to me. It was Ok until yesterday.
I am curious about the chatGPT API version that is currently used without problems.

@tunyawat
Copy link

Modify the DataTypes.cs as follow


public struct ChatChoice
{
    public ChatMessage Message { get; set; }
    public ChatMessage Delta { get; set; }
    public int? Index { get; set; }
    public string FinishReason { get; set; }
    public bool logprobs {get; set; }
}

@MrKamikazee
Copy link
Author

It works, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants