- Switch from generate_content to generate_content_stream for text generation
- Disable Automatic Function Calling (AFC) to reduce overhead
- Increase client timeout to 300s (5 min) for complex prompts
- Add chunk/character count logging for streaming responses