Function: clampEffort()
function clampEffort(model, effort): OpenAIEffort;
Defined in: providers/openai-models.ts:123
Bring an effort level into the set a model accepts: prefer the nearest weaker level, else the nearest stronger one. xhigh on a model that does not list it becomes high; none on Astra becomes low.
Parameters
| Parameter | Type |
|---|---|
model | string |
effort | OpenAIEffort |