-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not parse ChatCompletionChunk when using streamChatCompletion #3
Comments
Hi, which version of the library do you use? I added a test to deserialize this json as part of 2308414 and it works. |
My application uses Jackson version 2.15.2 |
I tried downgrading to this version and it still works. Are you trying to deserialize it using your own |
Hmm yes, it is strange. I can't seem to be able to reproduce with the json that you provided. Just to confirm which Java version and OS do you use? |
Hi @StefanBratanov , My spring boot application uses java 17 and I use MacOs |
Thank you. Will look into it and update here. |
Hi @StefanBratanov , thanks for your assistance! I suspect the issue stems from conflicting Jackson library versions in my project. It's possible that version 2.15.2 isn't being used, and 2.13.3 is interfering. I rely on several other com.fasterxml.jackson.* libraries, so I'll investigate this further. |
Thank you. Brings an interesting point because the Jackson scope in this library is |
Hi @hntan, I have decided to keep the |
Hi @hntan as part of https://github.com/StefanBratanov/jvm-openai/releases/tag/v0.9.1 release, I added a workaround which should fix your record deserialization problems if you still face them. |
I got this error.
Can not set final java.lang.String field io.github.stefanbratanov.jvm.openai.ChatCompletionChunk$Choice.finishReason to null value (through reference chain: io.github.stefanbratanov.jvm.openai.ChatCompletionChunk["choices"]->java.util.ArrayList[0])
Debug into the code
I see the response is valid.
The text was updated successfully, but these errors were encountered: