Skip to content

Commit

Permalink
ihp-openai: system_fingerprint is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Mar 6, 2025
1 parent f0fea79 commit 290c462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihp-openai/IHP/OpenAI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ instance FromJSON CompletionChunk where
<*> v .: "choices"
<*> v .: "created"
<*> v .: "model"
<*> v .: "system_fingerprint"
<*> v .:? "system_fingerprint"

data CompletionChunkChoice
= CompletionChunkChoice { delta :: !Delta }
Expand Down

0 comments on commit 290c462

Please sign in to comment.