ReqLLM. Providers. Google. ResponseBuilder
(ReqLLM v1.14.0)
View Source
Google/Gemini-specific ResponseBuilder implementation.
Handles Google's specific requirements:
- Detects
functionCallin parts to set correct finish_reason - Google returns "STOP" even when function calls are made
- Extracts reasoning_details with thought signatures from thinking chunks
This fixes bug #271 where streaming responses with tool calls
had :stop finish_reason instead of :tool_calls.