Skip to main content

FINISH_REASON_LENGTH

Constant FINISH_REASON_LENGTH 

Source
pub const FINISH_REASON_LENGTH: &'static str;
Available on crate feature tool-loop only.
Expand description

The finish_reason of a reply that stopped at the model’s output limit.

OpenAiChatModel passes the provider’s value through, and this is the OpenAI-compatible spelling; a ToolModel of your own reports a cut-off reply as this too, through ModelTurn::with_finish_reason.