Deadline exceeded during content streaming.
Why this happens
Server or network deadlines expire when processing large streaming outputs.
Answer 1: Increase generation client timeouts
from google import genai
from google.genai import types
client = genai.Client(http_options=types.HttpOptions(timeout=60_000))
Reference: Google Gen AI SDK HTTP options. The HTTP timeout is specified in milliseconds; 60_000 means 60 seconds.
