Skip to content
On this page

<<EasyGPT>>.advanced.setTemperature()

Influence how focused or random a response should be.

Usage

js
// Example of focused.
instance.advanced.setTemperature(0.2);

// Example of unfocused / more random.
instance.advanced.setTemperature(1.2);

Parameters

PARAMETERTYPEDefaultDESCRIPTION
temperatureNumberN/AA higher value results in a more random response.

Where a lower value results in a more focused response.

Value must be between 0 and 2.

Returns

EasyGPT instance (<<EasyGPT>>)