Repository navigation
Commit 325a948
authored
chore(api): correct fine-tuning bounds and Realtime response reference (openai#3949)
## Summary
Corrects fine-tuning numeric bounds and Realtime client-secret response
alternatives in the Python API reference.
## Changes
- Use OpenAPI 3.1 numeric exclusive bounds for fine-tuning parameters.
- Identify realtime and transcription session alternatives in
client-secret responses.
## Why
The API reference used boolean `exclusiveMinimum` values, which are
invalid in OpenAPI 3.1. This corrects seven numeric lower bounds and
restores their existing `auto` defaults. Explicit discriminator mappings
also identify the existing `realtime` and `transcription` alternatives
in client-secret responses.
This is a reference-only correction: SDK source, public types,
dependencies, and request/response serialization are unchanged.
Source: [published OpenAPI
correction](openai/openai-openapi@946e365).
## Compatibility review
Reviewed head `add92714d353df33e1ee98a604800ce8b6e6d42d` against base
`4d1274681db7f34f671ff9e71adc1461d22a927b`.
- The complete tree diff contains only `.castiron.stats.yml` and
`api_reference/openapi.transformed.yml`. All SDK source, public
signatures, related model types, serializers, dependencies, and
package/build configuration are unchanged. Neither changed file is
consumed by the SDK runtime or enters its normal distributed code.
- Paired baseline/candidate Python client and model probes pass (183
cases per revision, identical results).
- The transformed reference passes 464 focused schema cases, including
actual enclosing requests/responses, lower/upper boundaries, `auto`,
omission, and both Realtime response variants.
- [Current-head
CI](https://github.com/openai/openai-python/actions/runs/35922654398)
passes.
Scope: this establishes no identified SDK-package compile-time or
runtime compatibility regression from this patch. Tools that directly
read the OpenAPI reference (validators, mock servers, or third-party
generators) can observe the corrected bounds, defaults, and explicit
mappings; those integrations are a separate compatibility surface. No
deployed-service test or package release is claimed.
Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>1 parent bfd3680 commit 325a948
2 files changed
Lines changed: 22 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36954 | 36954 | | |
36955 | 36955 | | |
36956 | 36956 | | |
| 36957 | + | |
36957 | 36958 | | |
36958 | 36959 | | |
36959 | 36960 | | |
36960 | 36961 | | |
36961 | 36962 | | |
36962 | 36963 | | |
36963 | 36964 | | |
36964 | | - | |
36965 | | - | |
| 36965 | + | |
36966 | 36966 | | |
36967 | 36967 | | |
36968 | 36968 | | |
| |||
41281 | 41281 | | |
41282 | 41282 | | |
41283 | 41283 | | |
| 41284 | + | |
41284 | 41285 | | |
41285 | 41286 | | |
41286 | 41287 | | |
41287 | 41288 | | |
41288 | 41289 | | |
41289 | 41290 | | |
41290 | | - | |
41291 | 41291 | | |
41292 | | - | |
| 41292 | + | |
41293 | 41293 | | |
41294 | 41294 | | |
41295 | 41295 | | |
| |||
41305 | 41305 | | |
41306 | 41306 | | |
41307 | 41307 | | |
| 41308 | + | |
41308 | 41309 | | |
41309 | 41310 | | |
41310 | 41311 | | |
41311 | 41312 | | |
41312 | 41313 | | |
41313 | 41314 | | |
41314 | | - | |
41315 | | - | |
| 41315 | + | |
41316 | 41316 | | |
41317 | 41317 | | |
41318 | 41318 | | |
| |||
41369 | 41369 | | |
41370 | 41370 | | |
41371 | 41371 | | |
| 41372 | + | |
41372 | 41373 | | |
41373 | 41374 | | |
41374 | 41375 | | |
41375 | 41376 | | |
41376 | 41377 | | |
41377 | 41378 | | |
41378 | | - | |
41379 | | - | |
| 41379 | + | |
41380 | 41380 | | |
41381 | 41381 | | |
41382 | 41382 | | |
| |||
41402 | 41402 | | |
41403 | 41403 | | |
41404 | 41404 | | |
| 41405 | + | |
41405 | 41406 | | |
41406 | 41407 | | |
41407 | 41408 | | |
41408 | 41409 | | |
41409 | 41410 | | |
41410 | 41411 | | |
41411 | | - | |
41412 | 41412 | | |
41413 | | - | |
| 41413 | + | |
41414 | 41414 | | |
41415 | 41415 | | |
41416 | 41416 | | |
| |||
41469 | 41469 | | |
41470 | 41470 | | |
41471 | 41471 | | |
| 41472 | + | |
41472 | 41473 | | |
41473 | 41474 | | |
41474 | 41475 | | |
41475 | 41476 | | |
41476 | 41477 | | |
41477 | 41478 | | |
41478 | | - | |
41479 | | - | |
| 41479 | + | |
41480 | 41480 | | |
41481 | 41481 | | |
41482 | 41482 | | |
| |||
41649 | 41649 | | |
41650 | 41650 | | |
41651 | 41651 | | |
| 41652 | + | |
41652 | 41653 | | |
41653 | 41654 | | |
41654 | 41655 | | |
41655 | 41656 | | |
41656 | 41657 | | |
41657 | 41658 | | |
41658 | 41659 | | |
41659 | | - | |
41660 | | - | |
| 41660 | + | |
41661 | 41661 | | |
41662 | 41662 | | |
41663 | 41663 | | |
| |||
51336 | 51336 | | |
51337 | 51337 | | |
51338 | 51338 | | |
| 51339 | + | |
| 51340 | + | |
| 51341 | + | |
51339 | 51342 | | |
51340 | 51343 | | |
51341 | 51344 | | |
| |||
0 commit comments