EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /language-model /v2 /language-model-v2-finish-reason.ts
EdgeAIG's picture
download
raw
890 Bytes
/**
* Reason why a language model finished generating a response.
*
* Can be one of the following:
* - `stop`: model generated stop sequence
* - `length`: model generated maximum number of tokens
* - `content-filter`: content filter violation stopped the model
* - `tool-calls`: model triggered tool calls
* - `error`: model stopped because of an error
* - `other`: model stopped for other reasons
* - `unknown`: the model has not transmitted a finish reason
*/
export type LanguageModelV2FinishReason =
| 'stop' // model generated stop sequence
| 'length' // model generated maximum number of tokens
| 'content-filter' // content filter violation stopped the model
| 'tool-calls' // model triggered tool calls
| 'error' // model stopped because of an error
| 'other' // model stopped for other reasons
| 'unknown'; // the model has not transmitted a finish reason

Xet Storage Details

Size:
890 Bytes
·
Xet hash:
4aa78c3b1a604f9c3dfa550f237e6dd164d72a1f76f2d9e1687a1fa97eac6d54

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.