|
|
@@ -110,14 +110,15 @@ function resolveReasoningLevel(
|
|
|
/**
|
|
|
* Selectable reasoning efforts for one model, or nothing at all.
|
|
|
*
|
|
|
- * A model the installed catalog does not describe carries no reasoning
|
|
|
- * metadata, and pi-ai reports that as the single level `off`. Passing that
|
|
|
- * through would offer a control that cannot do what it says: `off` is
|
|
|
- * translated to *omitting* the reasoning option, which for such a model is
|
|
|
- * byte-for-byte the same request as naming no effort — so a provider whose own
|
|
|
- * default is to think would keep thinking with `off` selected. Omitting
|
|
|
- * `reasoning` entirely is the seam's way of saying the capability is
|
|
|
- * unavailable, which leaves the surface offering only the provider's default.
|
|
|
+ * A model that carries no reasoning metadata — every hand-declared one, and
|
|
|
+ * every catalog model pi-ai marks as non-reasoning — is reported by pi-ai as
|
|
|
+ * supporting the single level `off`. Passing that through would offer a control
|
|
|
+ * that cannot do what it says: `off` is translated to *omitting* the reasoning
|
|
|
+ * option, which for such a model is byte-for-byte the same request as naming no
|
|
|
+ * effort — so a provider whose own default is to think would keep thinking with
|
|
|
+ * `off` selected. Omitting `reasoning` entirely is the seam's way of saying the
|
|
|
+ * capability is unavailable, which leaves the surface offering only the
|
|
|
+ * provider's default.
|
|
|
* @param model - the resolved model descriptor.
|
|
|
* @param defaultLevel - the profile's configured effort, already validated.
|
|
|
* @returns the `reasoning` field, or an empty object when none can be offered.
|