Skip to content

Commit d038f3a

Browse files
committed
Merge remote-tracking branch 'origin/main' into codex/openai-python-pathlike-upload
2 parents e4a3404 + 3cc8d78 commit d038f3a

151 files changed

Lines changed: 6184 additions & 589 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.castiron.stats.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: ee9a1017-930f-49f4-9724-5633d30d1c71
3-
openapi_spec_hash: 0ba3e4acd88b521d832e2a42d5471e00
4-
openapi_transformed_spec_hash: 0a6002520553b981f4c0bf6555a0a623
5-
config_hash: d8813efd847d1966dd7f03bb648c41dc
6-
codegen_sha: 7df32a6b1fe20434a95b0c9bbeb981810f5f3d20
7-
codegen_hash: 37a95ae987fcdd52ebbc324b4fa6aee8c76099df8af4b97250fb4ca5cf36965d
8-
public_codegen_sha: 86966c00928eccb2f77611935d572af7edd15619
2+
generation_id: 08cffa97-63b1-4ab3-b3e4-9d438f45458f
3+
openapi_spec_hash: fcdb9c99a509f5ea8b90d7abbf1dab2f
4+
openapi_transformed_spec_hash: dd244f7dd3ab9d18dc2c34970a39505f
5+
config_hash: 81fd1039eb373628d87269f065d30a69
6+
codegen_sha: fb6674883ea2eed44fa6db1f16b106ee84b4c9e5
7+
codegen_hash: d68cd064823d9541b5d0874c92142d2691f7943452d9142c205b4cead3798785
8+
public_codegen_sha: e84368fa07e999995b4ec9f8514e6c5a98be2a89

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ jobs:
177177
- name: Bootstrap
178178
run: ./scripts/bootstrap
179179

180+
- name: Check concurrent Steady publication
181+
run: node scripts/steady/publication.test.cjs
182+
180183
- name: Run tests
181184
run: ./scripts/test
182185

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ Brewfile.lock.json
2121
.DS_Store
2222

2323
examples/*.mp3
24+
25+
/scripts/steady/.cache/

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.7.0"
2+
".": "3.8.0"
33
}

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [3.8.0](https://github.com/openai/openai-python/compare/v3.7.0...v3.8.0) (2026-09-03)
4+
5+
6+
### Features
7+
8+
* **api:** add gpt-6-astra and related features ([#3791](https://github.com/openai/openai-python/issues/3791)) ([09f446f](https://github.com/openai/openai-python/commit/09f446f5f8623d79464568dc91b9dc258e74bcae))
9+
10+
11+
### Documentation
12+
13+
* add canonical SDK security model ([#3778](https://github.com/openai/openai-python/issues/3778)) ([2a097b9](https://github.com/openai/openai-python/commit/2a097b991bb23a26bde9da8ea286f850ac1329f1))
14+
315
## [3.7.0](https://github.com/openai/openai-python/compare/v3.6.0...v3.7.0) (2026-09-02)
416

517

CONTRIBUTING.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,27 @@ $ pip install ./path-to-wheel-file.whl
172172

173173
## Running tests
174174

175-
Most tests require you to [set up a mock server](https://github.com/dgellow/steady) against the OpenAPI spec to run the tests.
176-
177-
`./scripts/bootstrap` installs the locked Steady package and its platform
178-
binary. `./scripts/test` starts it automatically when no mock server is running.
179-
Neither `./scripts/test` nor `./scripts/mock` downloads Node tools. If the local
175+
The mock server uses [the OpenAI Steady fork](https://github.com/openai-oss-forks/steady).
176+
`scripts/steady/manifest.json` is the single source of dependency pins: the
177+
Steady Git commit and source digest, plus the Deno version and runtime checksums. `./scripts/steady/install` fetches that source, verifies the runtime,
178+
and caches dependencies using the fork's frozen Deno lockfile. It requires
179+
Git, Node.js, curl, unzip, and sha256sum or shasum. The installation supports
180+
macOS and Linux on x64/ARM64, and Windows x64 through Git Bash.
181+
182+
`./scripts/run-steady` verifies the local source and runtime, then runs without
183+
downloading dependencies. Pass a local OpenAPI specification path. To update
184+
Steady, review the fork commit and run
185+
`node scripts/steady/update.cjs <full-commit-sha>`. This updates the manifest
186+
with the commit and its source digest; no launcher or test edits are needed.
187+
Then run `./scripts/steady/install`. Review the release checksums when changing Deno.
188+
Run `node scripts/steady/test.cjs` to check the
189+
installation, integrity checks, and mock-server lifecycle.
190+
191+
192+
Most tests require you to [set up a mock server](https://github.com/openai-oss-forks/steady) against the OpenAPI spec to run the tests.
193+
194+
`./scripts/bootstrap` installs the pinned Steady source and Deno runtime. `./scripts/test` starts it automatically when no mock server is running.
195+
Neither `./scripts/test` nor `./scripts/mock` downloads mock tooling. If the local
180196
tool is missing, rerun bootstrap. `TEST_API_BASE_URL` and an already-running
181197
mock server remain supported. To start the server yourself:
182198

SECURITY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ This policy applies to the source code in this repository and the official
1010
[`openai` Python package](https://pypi.org/project/openai/), including its
1111
published source distributions and wheels.
1212

13+
## Threat model authority
14+
15+
This file governs coordinated disclosure and what reporters should include. The
16+
canonical repository threat model, trust boundaries, reportability guidance,
17+
and severity calibration for Codex Security scans are maintained in
18+
[`docs/architecture/security-model.md`](docs/architecture/security-model.md).
19+
Follow that document's own trusted-revision resolution rule for security
20+
analysis; do not duplicate or infer a competing threat model from this
21+
disclosure policy.
22+
1323
Do not report security vulnerabilities through public GitHub issues, pull requests, or discussions.
1424

1525
## What to include

api.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,20 @@ Methods:
435435
- <code>client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">poll</a>(\*args) -> VectorStoreFileBatch</code>
436436
- <code>client.vector_stores.file_batches.<a href="./src/openai/resources/vector_stores/file_batches.py">upload_and_poll</a>(\*args) -> VectorStoreFileBatch</code>
437437

438+
# Safety
439+
440+
## Alerts
441+
442+
Types:
443+
444+
```python
445+
from openai.types.safety import SafetyAlert
446+
```
447+
448+
Methods:
449+
450+
- <code title="get /safety/alerts/{id}">client.safety.alerts.<a href="./src/openai/resources/safety/alerts.py">retrieve</a>(id) -> <a href="./src/openai/types/safety/safety_alert.py">SafetyAlert</a></code>
451+
438452
# [Webhooks](src/openai/resources/webhooks/api.md)
439453

440454
Methods:
@@ -492,6 +506,8 @@ from openai.types.beta import (
492506
BetaResponseComputerToolCall,
493507
BetaResponseComputerToolCallOutputItem,
494508
BetaResponseComputerToolCallOutputScreenshot,
509+
BetaResponseConfigurationUpdateItem,
510+
BetaResponseConfigurationUpdateItemParam,
495511
BetaResponseContainerReference,
496512
BetaResponseContent,
497513
BetaResponseContentPartAddedEvent,
@@ -581,6 +597,15 @@ from openai.types.beta import (
581597
BetaResponseShellCallOutputContentDeltaEvent,
582598
BetaResponseShellCallOutputContentDoneEvent,
583599
BetaResponseStatus,
600+
BetaResponseSteerAcceptedEvent,
601+
BetaResponseSteerErrorCode,
602+
BetaResponseSteerEvent,
603+
BetaResponseSteerFailedEvent,
604+
BetaResponseSteerInput,
605+
BetaResponseSteerInputContent,
606+
BetaResponseSteerPendingEvent,
607+
BetaResponseSteerPendingReason,
608+
BetaResponseSteerRequiredInput,
584609
BetaResponseStreamEvent,
585610
BetaResponseTextConfig,
586611
BetaResponseTextDeltaEvent,

0 commit comments

Comments
 (0)