Candidate.FinishReason

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

The reason why this Candidate is returned.

Summary

Constants

static final int

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

static final int

All other reasons that stopped the generation.

static final int

Natural stop point of the model.

Public constructors

Constants

MAX_TOKENS

public static final int  MAX_TOKENS 

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

OTHER

public static final int  OTHER 

All other reasons that stopped the generation.

STOP

public static final int  STOP 

Natural stop point of the model.

Public constructors

FinishReason

public  FinishReason 
()
Design a Mobile Site
View Site in Mobile | Classic
Share by: