Skip to content

T8#1694

Merged
nmaguiar merged 2 commits intomasterfrom
t8
Feb 16, 2026
Merged

T8#1694
nmaguiar merged 2 commits intomasterfrom
t8

Conversation

@nmaguiar
Copy link
Collaborator

This pull request primarily improves how Gemini model responses are parsed and handled, especially in scenarios involving function calls and streaming. It ensures that empty or non-textual responses are managed gracefully and that function call parts are accurately aggregated across multiple streaming events. Additionally, a minor HTML fix is included.

Gemini response handling improvements:

  • Updated the logic for extracting text from Gemini responses to avoid returning empty strings when only functionCall/functionResponse parts are present, returning a stringified response or the raw response object instead. [1] [2]
  • Enhanced the tool-calling logic for Gemini streaming by aggregating functionCall parts across all events, deduplicating them, and ensuring correct tool invocation even when function calls and STOP events are split.
  • Simplified the follow-up streaming logic by removing unnecessary flags and ensuring the conversation is correctly updated with tool call results. [1] [2]

HTML template fix:

  • Added a <!DOCTYPE html> declaration to the md.hbs template for proper HTML rendering.

@nmaguiar nmaguiar self-assigned this Feb 16, 2026
@nmaguiar nmaguiar merged commit 3b4ce65 into master Feb 16, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Continuous Enhancement Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

1 participant