Default ChatChunk.finishReason to null. This should allow us to support more service providers.
What problem is this fixing?
Currently, ChatChunk.finishReason is declared as nullable but does not have a default value. Serialization complains that the field is missing.
Caused by: [CIRCULAR REFERENCE: com.aallam.openai.api.exception.OpenAIHttpException: Field 'finish_reason' is required for type with serial name 'com.aallam.openai.api.chat.ChatChunk', but it was missing at path: $.choices[0]]
Describe your change
Default
ChatChunk.finishReason
to null. This should allow us to support more service providers.What problem is this fixing?
Currently,
ChatChunk.finishReason
is declared as nullable but does not have a default value. Serialization complains that the field is missing.