Skip to content

Commit 290c462

Browse files
committed
ihp-openai: system_fingerprint is optional
1 parent f0fea79 commit 290c462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ihp-openai/IHP/OpenAI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ instance FromJSON CompletionChunk where
394394
<*> v .: "choices"
395395
<*> v .: "created"
396396
<*> v .: "model"
397-
<*> v .: "system_fingerprint"
397+
<*> v .:? "system_fingerprint"
398398

399399
data CompletionChunkChoice
400400
= CompletionChunkChoice { delta :: !Delta }

0 commit comments

Comments
 (0)