create

public Chat create(String model, GenerateContentConfig config)

Creates a new chat session.

Return

The chat session.

Parameters

model

The model to use for the chat session.

config

The configuration for the chat session.


public Chat create(String model)

Creates a new chat session.

Return

The chat session.

Parameters

model

The model to use for the chat session.