Skip to content

Make ModelRequest#getOptions non-null#5403

Merged
ericbottard merged 1 commit intospring-projects:mainfrom
sdeleuze:non-null-model-options
Feb 4, 2026
Merged

Make ModelRequest#getOptions non-null#5403
ericbottard merged 1 commit intospring-projects:mainfrom
sdeleuze:non-null-model-options

Conversation

@sdeleuze
Copy link
Contributor

@sdeleuze sdeleuze commented Feb 4, 2026

Before this commit, ModelRequest#getOptions was nullable but almost all usages were expecting mandatory options.

So this commit turns it to non-null and adapt usages accordingly, using default/empty options where relevant.

@sdeleuze sdeleuze added this to the 2.0.0-M3 milestone Feb 4, 2026
@sdeleuze sdeleuze requested a review from ericbottard February 4, 2026 09:40
@sdeleuze sdeleuze self-assigned this Feb 4, 2026
Before this commit, ModelRequest#getOptions was nullable but
almost all usages were expecting mandatory options.

So this commit turns it to non-null and adapt usages accordingly,
using default/empty options where relevant.

Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
@sdeleuze sdeleuze force-pushed the non-null-model-options branch from daf5e38 to ff8b50f Compare February 4, 2026 09:41
Copy link
Member

@ilayaperumalg ilayaperumalg left a comment

Choose a reason for hiding this comment

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

LGTM

@ericbottard ericbottard merged commit e4a4723 into spring-projects:main Feb 4, 2026
2 checks passed
sdeleuze added a commit to sdeleuze/spring-ai that referenced this pull request Feb 11, 2026
sdeleuze added a commit to sdeleuze/spring-ai that referenced this pull request Feb 11, 2026
Update DeepSeekChatModel for nullable prompt options.

Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
@sdeleuze sdeleuze removed this from the 2.0.0-M3 milestone Feb 11, 2026
@sdeleuze
Copy link
Contributor Author

Due to various unwanted side effects, this change has been reverted.

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.

3 participants