← Quiz: Production and Cost: all 10 questions
Quiz: Production and Cost · Question 5 of 10
stopreason is "refusal". What should the app do?
stop_reason is "refusal". What should the app do?
- A.Show an empty message
- B.Retry forever
- C.Show a polite explanation or alternative instead of a blank reply
- D.Crash
Answer & explanation
Correct answer: Show a polite explanation or alternative instead of a blank reply
Handle every stop reason deliberately.
Can you get the rest right without peeking?
Take the timed Quiz: Production and Cost quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →