openai-java
openai-java copied to clipboard
add empty constructor in ChatCompletionRequest
i encounter a parsing problem when i use jackson, it seems like ChatCompletionRequest should have a empty constructor so that Jackson can correctly parse it. so please add empty constructor in ChatCompletionRequest.
i would like to contribute could you assign this task to me
Just a commment though. lombok.Data should create a no args constructor automagically. I suspect it's not a code problem.
@Data
@huajiayi Can you confirm you have lombok installed correctly in your build environment?
I'll install it on my env but we have to only add one no args constructor in ChatComplationRequest file
Just a commment though. lombok.Data should create a no args constructor automagically. I suspect it's not a code problem.
@DaTa
@huajiayi Can you confirm you have lombok installed correctly in your build environment?
I have installed the lombok, but actually it doesn't work, so i have to write a MyChatComplationRequest to fix thie problem, but it is only a temporary solution.
Then for permanent solution what to do should I help.
Then for permanent solution what to do should I help.
https://github.com/TheoKanning/openai-java/pull/151 seems like someone have submitted a pr for this issue.