srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
648 stars 144 forks source link

JsonSerializationException: Could not find member 'system_fingerprint' on object of type 'CreateChatCompletionResponse'. Path 'system_fingerprint', line 21, position 23. #102

Closed omaratcygnus closed 6 months ago

omaratcygnus commented 7 months ago

system_fingerprint variable added in response from OpenAI JsonSerializationException: Could not find member 'system_fingerprint' on object of type 'CreateChatCompletionResponse'. Path 'system_fingerprint', line 21, position 23.

To Reproduce Steps to reproduce the behavior:

  1. Just open your application using this repo to communicate with GPT

Expected behavior JsonSerializationException will occur

Environment (please complete the following information):

Radlad-io commented 7 months ago

Bump. Got this in an application this morning.

spoullados commented 7 months ago

Me too

jhinpan commented 7 months ago

Can see Issue #99, which is closed now. Updating DataTypes.cs can temporarily solve this problem!

Radlad-io commented 7 months ago

@jhinpan can confirm #99. I added the type to the file and was back up and running.

srcnalt commented 6 months ago

Issue solved in 0.2.0v, please try the newer version and let me know if you run into any issue.