Skip to content

Glossary: Building with LLMs Basics

Stop reason

Also written: stop_reason, end_turn, tool_use, refusal

Why the model stopped writing, such as `end_turn` (finished), `max_tokens` (cut off), `tool_use` (wants a tool) or `refusal`. OpenAI reports a similar `status`.

Where the book teaches it

Related terms

max_tokensTool use