Skip to content

Commit

Permalink
fix(chat): add systemFingerprint to ChatCompletionChunk (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam authored Feb 10, 2024
1 parent 9a3a323 commit 2969354
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aallam.openai.api.chat

import com.aallam.openai.api.BetaOpenAI
import com.aallam.openai.api.core.Usage
import com.aallam.openai.api.model.ModelId
import kotlinx.serialization.SerialName
Expand Down Expand Up @@ -42,4 +41,11 @@ public data class ChatCompletionChunk(
*/
@SerialName("usage")
public val usage: Usage? = null,

/**
* This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with
* the `seed` request parameter to understand when backend changes have been made that might impact determinism.
*/
@SerialName("system_fingerprint")
public val systemFingerprint: String? = null,
)

0 comments on commit 2969354

Please sign in to comment.