Bài kiểm tra có liên kết hướng dẫn · Trung bình Cấp độ

Câu đố về số lượng mã thông báo tối đa và chuỗi dừng

Kiểm tra sự khác biệt giữa mã thông báo tối đa và cửa sổ ngữ cảnh, cách hoạt động của chuỗi dừng và cách đọc lý do kết thúc để bắt phần cắt ngắn.

Đường dẫn hướng dẫn liên quanMã thông báo tối đa và chuỗi dừng
Câu hỏi 1 của 8

Mã thông báo tối đa giới hạn những gì?

Xem trước mọi câu hỏi8 câu hỏi

Câu trả lời và giải thích xuất hiện khi bạn làm bài kiểm tra.

  1. Mã thông báo tối đa giới hạn những gì?
    • 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
    • Kích thước từ vựng của mô hình
  2. Cuộc gọi của bạn trả về lý do kết thúc là 'độ dài' trong API của OpenAI. Chuyện gì đã xảy ra thế?
    • 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. Anthropic stop_reason nào cho biết mô hình đã quyết định câu trả lời của nó đã hoàn tất?
    • end_turn
    • max_tokens
    • stop_sequence
    • tool_use
  4. Tại sao việc đặt giá trị mã thông báo tối đa thấp không giúp câu trả lời ngắn gọn?
    • 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. Trình tự dừng trùng khớp có thường được bao gồm trong văn bản trả về không?
    • 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?
    • cái
    • 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