Skip to content

Conversation

q-nathangrand
Copy link
Contributor

@q-nathangrand q-nathangrand commented Oct 10, 2025

See: #4596

…ol calls in VertexAiGeminiChatModel

Signed-off-by: NathanGrand <[email protected]>
String text = parts.stream()
.filter(part -> part.hasText() && !part.getText().isEmpty())
.map(Part::getText)
.collect(Collectors.joining(" "));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It didn't make sense to me to be turning one candidate into multiple generations, but perhaps I'm misunderstanding?

Previous behaviour collected all parts containing function tools and combined into one AssistantMessage; idea here was to take the same approach here if multiple parts contain text.

@q-nathangrand
Copy link
Contributor Author

Just testing this further manually

@q-nathangrand
Copy link
Contributor Author

Just testing this further manually

Seems to be working well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants