問題文
A summarization endpoint occasionally returns a response that ends mid-sentence. The developer needs to distinguish this from a normal completion in code. Which check is correct?
選択肢
- Check whether stop_reason equals max_tokens, which indicates the response was truncated at the output limit rather than completed.
- Check whether the last character of the text is a period, and treat anything else as truncation.
- Check whether the response took longer than the average latency, since truncated responses are slower.
- Check whether stop_reason equals end_turn, which indicates truncation.