-
Notifications
You must be signed in to change notification settings - Fork 12
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
Function parameters are serialized with JSON escaping, making it difficult to emit the write JSON #7
Comments
Hi, thanks a lot for raising this. Currently, you can go around this by making the raw jsons |
@bironran The fix has been released as part of https://github.com/StefanBratanov/jvm-openai/releases/tag/v0.9.0 so will close this issue. Feel free to reopen if facing the same issue. |
There's a bug in deserialization now:
I get an exception:
|
Hmm this error is similar to the one described at #3 . Are you sure you are not using an old version of Jackson in your project? There is a bug in older ones related to Java records. |
This workaround works https://stackoverflow.com/a/68998917/931 |
I just bound Jackson to 2.17.1 explicitly and without the workaround it still fails. |
Thank you, I reopened the issue and will have a look |
It's interesting. I wasn't able to replicate the issue with this JSON. I wonder if it something to do with my OS or Java version. In any case, since it has been more than one user reporting this, I added the workaround in 4e93533 and will release |
Hi @bironran just released https://github.com/StefanBratanov/jvm-openai/releases/tag/v0.9.1 . I will close the issue again but let me know if still facing the problem. |
It's expected that properties values would not be serialized with escaping.
Example:
`
public class SerializeTest {
`
Same with required[] really
The text was updated successfully, but these errors were encountered: