[KongchangAI]
Concept完成原因 / finishReason

finish reason

An enumerated field returned by the AI SDK after each generation completes, used to inform the caller why generation terminated. Common values include stop, length, content-filter, tool-calls, error, and other, with the addition of interrupted to indicate the stream has ended but no provider completion signal was received.

Timeline (last 90 days)

Oct 22

AI SDK 2.0.81 introduces a new completion reason, interrupted, for provider streams, used for streams that end without receiving a completion signal.

Unverified50%
Oct 22

finish reason is the SDK's classification of how a model response ended, with typical values including stop, length, and tool-calls.

Unverified50%
Oct 22

finish reason is an enum field returned by the AI SDK after each generation ends, with common values including stop, length, content-filter, tool-calls, error, and other.

Unverified50%

All Facts (3)

Source Articles