Skip to content

Commit 325a948

Browse files
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

File tree

‎.castiron.stats.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: d9e3b632-5822-43f8-a0de-0cd04d09db33
3-
openapi_spec_hash: 687580b2f55d2dada661f0387a4b3e0d
4-
openapi_transformed_spec_hash: 904296217a5077aa14766c6c58aa87d9
2+
generation_id: aa310748-8aec-4537-9913-7c71cb2237cb
3+
openapi_spec_hash: 3fdbf56dcaf85efe1e621db8067f829a
4+
openapi_transformed_spec_hash: 3ff7c45d6856b5ffccfd73b63ee4263d
55
config_hash: 84cdcc959ee7140cc9a65e9b642c097b
6-
codegen_sha: 41ac0d43560df6c0983b529a6112e2c437ead2d1
6+
codegen_sha: 7b758af07cc10c9cf05f332897c9b75f85162bf3
77
codegen_hash: 614193cc88f476d3dbfe7d149d8adf21489f235af4454fb1e93628fe43e1e351
8-
public_codegen_sha: 2722089d4e9342c45f1ddbda6e7b4b72511d961f
8+
public_codegen_sha: 7eba580f1b2d7eb434697db16f576022d16b0388

‎api_reference/openapi.transformed.yml‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36954,15 +36954,15 @@ components:
3695436954
description: |
3695536955
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
3695636956
overfitting.
36957+
default: auto
3695736958
anyOf:
3695836959
- type: string
3695936960
enum:
3696036961
- auto
3696136962
x-stainless-const: true
3696236963
title: Auto
3696336964
- type: number
36964-
minimum: 0
36965-
exclusiveMinimum: true
36965+
exclusiveMinimum: 0
3696636966
n_epochs:
3696736967
description: |
3696836968
The number of epochs to train the model for. An epoch refers to one full cycle
@@ -41281,15 +41281,15 @@ components:
4128141281
beta:
4128241282
description: |
4128341283
The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.
41284+
default: auto
4128441285
anyOf:
4128541286
- type: string
4128641287
enum:
4128741288
- auto
4128841289
x-stainless-const: true
4128941290
- type: number
41290-
minimum: 0
4129141291
maximum: 2
41292-
exclusiveMinimum: true
41292+
exclusiveMinimum: 0
4129341293
batch_size:
4129441294
description: |
4129541295
Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.
@@ -41305,14 +41305,14 @@ components:
4130541305
learning_rate_multiplier:
4130641306
description: |
4130741307
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
41308+
default: auto
4130841309
anyOf:
4130941310
- type: string
4131041311
enum:
4131141312
- auto
4131241313
x-stainless-const: true
4131341314
- type: number
41314-
minimum: 0
41315-
exclusiveMinimum: true
41315+
exclusiveMinimum: 0
4131641316
n_epochs:
4131741317
description: |
4131841318
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -41369,14 +41369,14 @@ components:
4136941369
learning_rate_multiplier:
4137041370
description: |
4137141371
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
41372+
default: auto
4137241373
anyOf:
4137341374
- type: string
4137441375
enum:
4137541376
- auto
4137641377
x-stainless-const: true
4137741378
- type: number
41378-
minimum: 0
41379-
exclusiveMinimum: true
41379+
exclusiveMinimum: 0
4138041380
n_epochs:
4138141381
description: |
4138241382
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -41402,15 +41402,15 @@ components:
4140241402
compute_multiplier:
4140341403
description: |
4140441404
Multiplier on amount of compute used for exploring search space during training.
41405+
default: auto
4140541406
anyOf:
4140641407
- type: string
4140741408
enum:
4140841409
- auto
4140941410
x-stainless-const: true
4141041411
- type: number
41411-
minimum: 0.00001
4141241412
maximum: 10
41413-
exclusiveMinimum: true
41413+
exclusiveMinimum: 0.00001
4141441414
eval_interval:
4141541415
description: |
4141641416
The number of training steps between evaluation runs.
@@ -41469,14 +41469,14 @@ components:
4146941469
learning_rate_multiplier:
4147041470
description: |
4147141471
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.
41472+
default: auto
4147241473
anyOf:
4147341474
- type: string
4147441475
enum:
4147541476
- auto
4147641477
x-stainless-const: true
4147741478
- type: number
41478-
minimum: 0
41479-
exclusiveMinimum: true
41479+
exclusiveMinimum: 0
4148041480
n_epochs:
4148141481
description: |
4148241482
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
@@ -41649,15 +41649,15 @@ components:
4164941649
description: |
4165041650
Scaling factor for the learning rate. A smaller learning rate may be useful to avoid
4165141651
overfitting.
41652+
default: auto
4165241653
anyOf:
4165341654
- type: string
4165441655
enum:
4165541656
- auto
4165641657
x-stainless-const: true
4165741658
title: Auto
4165841659
- type: number
41659-
minimum: 0
41660-
exclusiveMinimum: true
41660+
exclusiveMinimum: 0
4166141661
n_epochs:
4166241662
description: |
4166341663
The number of epochs to train the model for. An epoch refers to one full cycle
@@ -51336,6 +51336,9 @@ components:
5133651336
The session configuration for either a realtime or transcription session.
5133751337
discriminator:
5133851338
propertyName: type
51339+
mapping:
51340+
realtime: '#/components/schemas/RealtimeSessionCreateResponseGA'
51341+
transcription: '#/components/schemas/RealtimeTranscriptionSessionCreateResponseGA'
5133951342
anyOf:
5134051343
- $ref: '#/components/schemas/RealtimeSessionCreateResponseGA'
5134151344
- $ref: '#/components/schemas/RealtimeTranscriptionSessionCreateResponseGA'

0 commit comments

Comments
 (0)