Skip to content

Commit 2969354

Browse files
authored
fix(chat): add systemFingerprint to ChatCompletionChunk (#303)
1 parent 9a3a323 commit 2969354

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

openai-core/src/commonMain/kotlin/com.aallam.openai.api/chat/ChatCompletionChunk.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.aallam.openai.api.chat
22

3-
import com.aallam.openai.api.BetaOpenAI
43
import com.aallam.openai.api.core.Usage
54
import com.aallam.openai.api.model.ModelId
65
import kotlinx.serialization.SerialName
@@ -42,4 +41,11 @@ public data class ChatCompletionChunk(
4241
*/
4342
@SerialName("usage")
4443
public val usage: Usage? = null,
44+
45+
/**
46+
* This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with
47+
* the `seed` request parameter to understand when backend changes have been made that might impact determinism.
48+
*/
49+
@SerialName("system_fingerprint")
50+
public val systemFingerprint: String? = null,
4551
)

0 commit comments

Comments
 (0)