Create a bidirectional streaming session.
Use as an async context manager. The session is automatically started and ended.
Example::
async with model.create_session() as session: await session.send_text("Hello!") async for event in session.receive_events(): if event["type"] == "text": print(event["text"])
Override the default max tokens.
Override the default temperature.
Override the default top-p.