On the default deployment (gpt-5.4-mini, PostgreSQL, LangGraph) every answer is sent through the Responses API with reasoning effort fixed at medium and no output limit.
The model's own default is none, and the admin page's max tokens and temperature are not sent on this path.
- What to change
- Read the effort from settings (for example AZURE_OPENAI_REASONING_EFFORT, default low or the current medium) and send max_output_tokens derived from the admin max tokens plus headroom for reasoning; treat a response.incomplete event as a cut-off answer.
- Why it matters
- Reasoning tokens are billed as output. A grounded answer over five retrieved pages rarely needs medium effort, and with no limit a runaway answer is billed up to the model's 128,000-token output ceiling.
- How big it is
- The code shows the problem and how often it happens; how many tokens it costs each time is assumed. To measure it: usage.output_tokens_details.reasoning_tokens per answer on a fixed set of 30 to 50 questions, once at effort medium and once at low, plus the answer check on the same set
- Estimate
- about 250k output tokens per 1,000 calls (estimate), if low effort uses about 500 fewer reasoning tokens per answer than medium
What the estimate assumes
half of calls go through this path (postgresql is the azd default and maps to langgraph); about 800 reasoning tokens at medium and 300 at low per answer, not measured; about 350 visible answer tokens. Lowering effort can change answers; the reasoning panel (ADR 0007) still works at low.