Add max and ultra reasoning efforts to the SDKs (#39662)

## What changed

- Add `max` and `ultra` to the TypeScript `ModelReasoningEffort` type.
- Add matching Python `ReasoningEffort` members and preserve them when SDK artifacts are regenerated.
- Update the Python model-selection examples to rank the new effort levels.

## Testing

- Cover serialization of both new Python enum members while continuing to accept unknown future values.

GitOrigin-RevId: 1412b77bdbb2530f5d38921cdea971dd34458353
This commit is contained in:
ianw-oai
2026-08-20 08:20:08 +00:00
committed by copyberry
parent 631d5a8b02
commit 240bbfc14a
6 changed files with 29 additions and 6 deletions
@@ -28,6 +28,8 @@ REASONING_RANK = {
"medium": 3,
"high": 4,
"xhigh": 5,
"max": 6,
"ultra": 7,
}
@@ -26,6 +26,8 @@ REASONING_RANK = {
"medium": 3,
"high": 4,
"xhigh": 5,
"max": 6,
"ultra": 7,
}