-
Notifications
You must be signed in to change notification settings - Fork 2k
Ollama: Added missing fields in API #554
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
Conversation
} | ||
|
||
public Builder withOptions(Map<String, Object> options) { | ||
Objects.requireNonNullElse(options, "The options can not be null."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the method name here to prevent NullPointerExceptions
Hey @ThomasVitale , thanks for improving this. It looks related to the aca8ffd PR I've just merged, but concerns the legacy Though the ChatClient impl. uses only the new |
yeah, I did a mistake with my previous merge. Please rebase after 15628a3 |
Fixes spring-projectsgh-553 Signed-off-by: Thomas Vitale <[email protected]>
@tzolov thanks, I'll rebase the PR shortly. I can see that a The Ollama documentation includes it also for the |
I've just rebased the PR on top of the current |
Sorry for the mess I caused earlier today. Obviously lacking testing for the options/parameter merging/mapping logic. Will add some today. |
@tzolov no problem! Thanks for the review! |
Fixes gh-553