Chat arguments such as temperature, topP topK

Hey I hope you are well,
I could not find ranges of chat arguments like the following for gemini models
temperature, top_k, top_p, max_tokens, frequency_penalty, presence_penalty and stop

Hi @Ifrah_Arif , Welcome to the forum.

You should be able to set the parameter in GenerationConfig. Here is the API reference link.

Yes,

you can specify it in the generationConfig.
Additionally, safetySettings as well as tools could be specified.

Cheers

1 Like