Closed mifu67 closed 7 months ago
Hi @mifu67 my guess also is that Open AI might have made system_fingerprint
mandatory in the response type. Can you add
public SystemFingerprint object { get; set; }
in CreateChatCompletionResponse here to see if that fixes the issue?
I do not have an API Key, so I wont be able to test it unfortunately.
@srcnalt yes, that fixes the issue. Thanks!
Describe the bug Calling CreateChatCompletion results in a JsonSerializationException when attempting to deserialize the CreateChatCompletionResponse object. Full error:
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:
Expected behavior A populated completionResponse.
Environment:
Context: This was working yesterday. Maybe the OpenAI API updated?