Mit dem Guide verknüpftes Quiz · Mittel Ebene

Quiz zu maximalen Token und Stoppsequenzen

Testet den Unterschied zwischen maximalen Token und dem Kontextfenster, wie Stoppsequenzen funktionieren und wie Endgründe gelesen werden, um Kürzungen abzufangen.

Verwandte FührungspfadeMax. Token und Stoppsequenzen
Frage 1 von 8

Was begrenzt Max Tokens?

Sehen Sie sich jede Frage in der Vorschau an8 Fragen

Während Sie am Quiz teilnehmen, werden Antworten und Erklärungen angezeigt.

  1. Was begrenzt Max Tokens?
    • 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
    • Die Größe des Vokabulars des Modells
  2. Dein Aufruf liefert einen Finish-Reason von 'length' in OpenAI's API. Was ist passiert?
    • 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
  3. Welcher Anthropic stop_reason zeigt an, dass das Modell seine Antwort als vollständig betrachtet hat?
    • end_turn
    • max_tokens
    • stop_sequence
    • tool_use
  4. Warum führt das Setzen eines niedrigen Max Tokens-Werts nicht zu prägnanteren Antworten?
    • 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
  5. Ist die übereinstimmende Stop-Sequenz normalerweise im zurückgegebenen Text enthalten?
    • 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
  6. 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
  7. Which stop sequence is the best choice for ending after a structured answer block?
    • die
    • a single space
    • </answer>
    • .
  8. 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