Викторина, связанная с руководством · Средний Уровень
Викторина по максимальному количеству токенов и стоп-последовательностям
Проверяет разницу между максимальным количеством токенов и окном контекста, как работают последовательности остановки и как считывать причины завершения, чтобы перехватить усечение.
Вопрос 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
- Размер словарного запаса модели
- Ваш вызов возвращает причину завершения «длины» в API OpenAI. Что случилось?
- 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