Handle tool call errors during streaming response serialization
- Add try-catch around chunk serialization in stream_generator functions - Skip chunks that fail to serialize (e.g., tool calls without tool_choice) - Log warnings for chunk serialization errors - Prevent streaming failures when models attempt tool calls without proper configuration - Apply fix to both RequestHandler and AutoselectHandler streaming methods
Showing
Please
register
or
sign in
to comment