Candidate.FinishReason

@IntDef(value = [0, 1, -100])
annotation Candidate.FinishReason


The reason why this Candidate is returned.

Summary

Constants

const Int

The maximum number of output tokens as specified in the request was reached.

const Int

All other reasons that stopped the generation.

const Int

Natural stop point of the model.

Public constructors

Constants

MAX_TOKENS

const val MAX_TOKENSInt

The maximum number of output tokens as specified in the request was reached.

OTHER

const val OTHERInt

All other reasons that stopped the generation.

STOP

const val STOPInt

Natural stop point of the model.

Public constructors

FinishReason

FinishReason()