How to use it
The simplest form is one added line: "Think step by step, then give the answer." You can also show a worked example with the steps written out, which is chain-of-thought combined with Few-Shot Prompting.
To keep the output usable:
- Ask for the answer on its own final line, or inside tags like
<answer>. See XML Prompts. - Only show the final answer to users unless they need the working.
- Leave enough
max_tokensfor both the steps and the answer.
When to skip it
For simple lookups, rewrites or classification, step-by-step reasoning mostly adds tokens and time. With reasoning models, adding it is often unnecessary, because they already plan internally.
Example
curl https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "luv13/glm-5.3-flash",
"messages": [
{"role": "user", "content": "A shirt costs $20 after a 20% discount. What was the original price? Think step by step, then put only the final answer in <answer> tags."}
],
"max_tokens": 400
}'The right answer is $25.
