API basics · Question 6 of 12

What happens when the answer reaches the configured maximum number of output tokens?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B The answer stops at that point, often mid-sentence

Explanation

The limit cuts the output off hard. The API then reports as the stop reason that the maximum length was reached – the app should check this instead of treating a truncated answer as complete.

Certifications & exams

Which exam comes next?

You can already practise for 60 exams, and 7 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications