MiPi adds bounded summary generation and optional reasoning effort control
MiPi now generates summary descriptions with a token limit and a concise prompt, adding operator settings MIPI_SUMMARY_MAX_TOKENS and MIPI_SUMMARY_REASONING_EFFORT. If the model response is cut short by the token limit, MiPi reports SUMMARY_PROVIDER_OUTPUT_LIMIT instead of storing incomplete JSON.
The change makes MiPi summary generation more controlled and observable. Summary requests now use a default max tokens budget of 1024, adjustable between 128 and 4096 through MIPI_SUMMARY_MAX_TOKENS. Operators can also set MIPI_SUMMARY_REASONING_EFFORT to none, minimal, low, medium, or high when a deployment supports it; by default the option is omitted so existing provider behavior is preserved. For supporting Ollama or proxy setups, none can be used to request no thinking while the model runs. The summary prompt now asks for a compact description of at most 3 short sentences and 700 characters, focusing on source type or composition, scale, processing outcome, and available or missing coverage instead of repeating UUIDs, API paths, schema names, configuration identifiers, or null metadata. References remain unchanged in inputReferences, and the existing strict 4096-byte description validation still applies. If the provider returns a completion truncated due to hitting the length limit, MiPi treats it as SUMMARY_PROVIDER_OUTPUT_LIMIT. That short response is not repaired, accepted, or persisted as a broken JSON description. New summary diagnostics record only safe metadata such as allowed finish reasons and numeric completion or reasoning token counts; response body text and reasoning content are not logged. Existing successful summaries remain reusable, and regenerating a failed summary does not reprocess the original source.