Loading...
const res = await llm.generate({
prompt: classifyTicketPrompt,
reasoning_effort: 'high',
});const effort = { classify: 'low', planMigration: 'high' };
const res = await llm.generate({
prompt: classifyTicketPrompt,
reasoning_effort: effort.classify,
});Simple classification needs little thinking, so low effort cuts latency and tokens; high effort is kept for hard tasks.
No. It helps on hard multi-step problems like math, planning or tricky code, but on simple tasks it mostly adds latency and cost.
On most APIs, yes. Thinking tokens count as output tokens even when they are hidden from the response.
Reasoning effort is an API setting for models trained to think before answering. Chain-of-thought is a prompt technique that asks any model to write out its steps.