Skip to content

Commit

Permalink
fix(chat): default ChatChunk.finishReason to null (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 authored Jun 18, 2024
1 parent 5f39dfc commit 8c13907
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public data class ChatChunk(
/**
* The reason why OpenAI stopped generating.
*/
@SerialName("finish_reason") public val finishReason: FinishReason?,
@SerialName("finish_reason") public val finishReason: FinishReason? = null,
)

0 comments on commit 8c13907

Please sign in to comment.