引導式測驗 · 中等 等級
最大令牌和停止序列測驗
測試最大標記和上下文視窗之間的差異、停止序列如何工作以及如何讀取完成原因以捕獲截斷。
問題 1 的 8
最大代幣數量有什麼限制?
預覽每個問題8 問題
當您參加測驗時,就會出現答案和解釋。
- 最大代幣數量有什麼限制?
- The total tokens of input plus output in the context window
- The number of tokens the model may generate in a single response
- The number of requests per minute
- 模型詞彙量的大小
- 您的呼叫在 OpenAI 的 API 中傳回「長度」的完成原因。發生了什麼事?
- The model finished its answer naturally
- A stop sequence was matched
- The output hit the maximum token limit and was cut off
- The model requested a tool call
- 哪一個 Anthropic stop_reason 表示模型決定其答案已完成?
- end_turn
- max_tokens
- stop_sequence
- tool_use
- 為什麼設定較低的最大標記值不能使答案簡潔?
- The API ignores low values
- The model writes as usual and is simply cut off when it reaches the limit
- It makes the model skip the first half of its answer
- It only affects input tokens
- 匹配的停止序列通常包含在傳回的文字中嗎?
- Yes, always at the end
- Yes, but only when streaming
- No, it is normally left out of the output
- Only if it is a single character
- A reasoning model returns an empty visible answer. What is a likely cause described in the guide?
- The stop sequence was too long
- Hidden reasoning tokens used up the output limit
- The context window was too large
- The prompt was written in lowercase
- Which stop sequence is the best choice for ending after a structured answer block?
- 的
- a single space
- </answer>
- .
- When streaming a response, when should your code decide whether the output was truncated?
- After the first chunk arrives
- When the finish reason arrives at the end of the stream
- Before sending the request
- Streaming responses cannot be truncated