finish_reason. There are exactly four values.
The Values
Where It Appears
Non-streaming:finish_reason is null on every chunk until the terminal one. See Delta format.
models[].finish_reason.
The four finish_reason values and how they appear in streams.
finish_reason. There are exactly four values.
finish_reason is null on every chunk until the terminal one. See Delta format.
models[].finish_reason.