From ae076a1d1df267005b61ecfec8493121401786bc Mon Sep 17 00:00:00 2001 From: Rodion Mostovoi Date: Thu, 9 Nov 2023 00:17:39 +0800 Subject: [PATCH] Add new properties to ChatCompletionResponse model Two new properties, 'Created' and 'SystemFingerprint' have been added to the ChatCompletionResponse model in OpenAI.ChatGpt. 'Created' is a Unix timestamp of when the chat completion was created and 'SystemFingerprint' is a string used to understand if backend configuration changes may affect determinism with respect to the model's usage. --- .../Models/ChatCompletion/ChatCompletionResponse.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/OpenAI.ChatGpt/Models/ChatCompletion/ChatCompletionResponse.cs b/src/OpenAI.ChatGpt/Models/ChatCompletion/ChatCompletionResponse.cs index 200b43f..e51430a 100644 --- a/src/OpenAI.ChatGpt/Models/ChatCompletion/ChatCompletionResponse.cs +++ b/src/OpenAI.ChatGpt/Models/ChatCompletion/ChatCompletionResponse.cs @@ -14,12 +14,22 @@ public class ChatCompletionResponse [JsonPropertyName("object")] public string Object { get; set; } + /// + /// The Unix timestamp (in seconds) of when the chat completion was created. + /// [JsonPropertyName("created")] public long Created { get; set; } [JsonPropertyName("model")] public string Model { get; set; } + /// + /// This fingerprint represents the backend configuration that the model runs with. + /// Can be used in conjunction with the request parameter to understand when backend changes have been made that might impact determinism. + /// + [JsonPropertyName("system_fingerprint")] + public string SystemFingerprint { get; set; } + [JsonPropertyName("choices")] public Choice[] Choices { get; set; }