Skip to content

Conversation

sunyuhan1998
Copy link
Contributor

@sunyuhan1998 sunyuhan1998 commented Sep 19, 2025

As mentioned in the issue, OllamaApiHelper was missing the merging of the thinking and toolName fields when combining Ollama messages. This PR fixes that problem.

This PR does the following:

  1. Adds merging logic for the thinking and toolName fields in OllamaApiHelper#merge(OllamaApi.Message, OllamaApi.Message).
  2. Adds a unit test class for OllamaApiHelper.

Fixes #4414

…e `thinking` and `toolName` were omitted when merging messages; added unit tests for `OllamaApiHelper`

Signed-off-by: Sun Yuhan <[email protected]>
Signed-off-by: Sun Yuhan <[email protected]>
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.

Thinking and toolName content sent from Ollama is lost in merge of ChatResponse.message in Spring AI ver 1.0.2
1 participant