Skip to content

Add JsonIgnoreProperties to DeepSeek Model Response objects #3057

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

Closed
wants to merge 1 commit into from

Conversation

quaff
Copy link
Contributor

@quaff quaff commented May 9, 2025

Continue of commit 53019c6

See GH-3026

@quaff
Copy link
Contributor Author

quaff commented May 9, 2025

@ilayaperumalg Hi, you forgot this one.

@ilayaperumalg
Copy link
Member

@quaff Thanks for the PR following it up!

@ilayaperumalg ilayaperumalg self-assigned this May 9, 2025
@ilayaperumalg ilayaperumalg added this to the 1.0.0-RC1 milestone May 9, 2025
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wildcard imports aren't allowed - will fix when merging.

* "my_function"}} forces the model to call that function. none is the default when no
* functions are present. auto is the default if functions are present. Use the
* {@link ToolChoiceBuilder} to create the tool choice value.
*/
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to add this annotation only for the response objects. Hence, we can remove this. Will fix it when merging.

@ilayaperumalg
Copy link
Member

Rebased and merged as 5b2f5ee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants