🔥 3-day streak
Claude Certified Associate (Foundations)103 / 150
Question 103 of 150
You are building a chatbot that generates short dialogue snippets between two characters named 'Alice' and 'Bob'. You want the model to generate only Alice's next line and stop before it starts writing Bob's response or any narration marker. In your Messages API request, you set stop_sequences to ["Bob:", "\n\n"]. When generation halts because the model produces the text 'Bob:', what will the API response indicate and what will be returned?
Reviewed for accuracy · Report an issueNext question