Skip to content

release: 5.0.0 #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
a97ea73
chore(internal): spec update (#1231)
stainless-app[bot] Dec 18, 2024
4a213da
fix(client): normalize method (#1235)
stainless-app[bot] Dec 19, 2024
6387968
docs: minor formatting changes (#1236)
stainless-app[bot] Dec 20, 2024
7a857b3
feat: initial alpha changes
RobertCraigie Dec 20, 2024
0edf7d2
fixes
RobertCraigie Dec 20, 2024
b917aaf
update ecosystem tests
RobertCraigie Dec 20, 2024
04f5c4c
fix tests
RobertCraigie Dec 20, 2024
93ff74b
re-export azure client
RobertCraigie Dec 20, 2024
71c95c1
CI: run on alpha branch
RobertCraigie Dec 20, 2024
c85d9e6
try fix
RobertCraigie Dec 20, 2024
3c7a7ba
fix examples
RobertCraigie Dec 20, 2024
d4bdc93
chore: bump version
RobertCraigie Dec 20, 2024
d71e56c
chore: bump license year
stainless-bot Jan 2, 2025
2cdfa92
chore(api): bump spec version
stainless-bot Jan 3, 2025
b535448
docs(readme): fix misplaced .
stainless-bot Jan 8, 2025
f94f270
feat(client): add realtime types
stainless-bot Jan 8, 2025
81b20f7
feat(client): improve debug logs
stainless-bot Jan 8, 2025
4593dab
fix: send correct Accept header for certain endpoints
stainless-bot Jan 10, 2025
3b4aede
chore(types): rename vector store chunking strategy
stainless-bot Jan 14, 2025
28662b9
refactor(types): remove deprecated params type aliases
stainless-bot Jan 14, 2025
0fd0d7c
chore(client): clean up file helpers
stainless-bot Jan 14, 2025
b20705e
chore(types): add `| undefined` to client options properties
stainless-bot Jan 15, 2025
54231c0
chore(client): improve node-fetch file upload errors
stainless-bot Jan 20, 2025
183d8e7
chore(client)!: document proxy use + clean up old code
stainless-bot Jan 20, 2025
4c7fcca
fix: correctly send default header values
stainless-bot Jan 21, 2025
c0e99db
docs: update deprecation messages
stainless-bot Jan 21, 2025
3e3a48a
chore(internal): minor restructuring
stainless-bot Jan 21, 2025
6477a60
feat(api): update enum values, comments, and examples
stainless-bot Jan 22, 2025
179e314
chore(types): remove type-level dependency on some platform specifics
stainless-bot Jan 27, 2025
e585df1
chore(client): handle expo fetch abort errors
stainless-bot Jan 30, 2025
7d3f8ef
chore(client): detect node and deno timeout errors
stainless-bot Jan 30, 2025
1e832a1
feat(api): add o3-mini
stainless-bot Jan 31, 2025
893d5ec
chore(internal): remove unused `isRequestOptions()` function
stainless-bot Feb 4, 2025
a8343ef
feat(client): send `X-Stainless-Timeout` header
stainless-bot Feb 4, 2025
983da6d
chore(api): delete deprecated method
stainless-bot Feb 4, 2025
b157a4b
fix(api/types): correct audio duration & role types
stainless-bot Feb 5, 2025
0e057f9
fix(client)!: uri encode path parameters
stainless-bot Feb 5, 2025
d99b497
fix: ChatCompletionStream types
RobertCraigie Feb 10, 2025
4cec09d
fix(api): add missing reasoning effort + model enums
stainless-bot Feb 5, 2025
87d26db
feat(pagination): avoid fetching when has_more: false
stainless-bot Feb 6, 2025
0b35b70
chore(internal): fix tests
stainless-em Feb 4, 2025
7f4714c
docs: fix typo, "zodFunctionTool" -> "zodFunction" (#1128)
hi019 Jan 22, 2025
71dd154
docs(helpers): fix type annotation
RobertCraigie Jan 22, 2025
a40d359
chore(internal): remove segfault-handler
RobertCraigie Feb 10, 2025
f3d7083
fix: correctly decode multi-byte characters over multiple chunks
stainless-bot Feb 10, 2025
59da177
feat(api): add support for storing chat completions
stainless-bot Feb 13, 2025
9416c96
fix(client): fix export map for index exports, accept BunFile
stainless-bot Feb 13, 2025
00ce31b
chore(internal): add missing return type annotation
stainless-bot Feb 14, 2025
0266b41
chore(internal): fix tests not always being type checked
stainless-bot Feb 17, 2025
a7effe8
fix: optimize sse chunk reading off-by-one error
stainless-bot Feb 18, 2025
a2714bb
fix(assistants): handle `thread.run.incomplete` event
RobertCraigie Feb 11, 2025
ee34833
fix(package): add chat/completions.ts back in (#1333)
RobertCraigie Feb 14, 2025
40e8dd2
fix(parsing): remove tool_calls default empty array (#1341)
RobertCraigie Feb 20, 2025
77e1180
fix(jsr): export zod helpers
RobertCraigie Jan 21, 2025
0eda70a
fix(azure/audio): use model param for deployments
RobertCraigie Feb 20, 2025
ad5a9b6
chore(internal): fix eslint ignores
RobertCraigie Feb 21, 2025
20f179d
chore: fix example types
RobertCraigie Feb 21, 2025
7737d25
feat(client): add Realtime API support
RobertCraigie Feb 21, 2025
04e30c0
fix(jsr): correct zod config
RobertCraigie Jan 21, 2025
0ea64eb
fix(jsr): export realtime helpers
RobertCraigie Jan 21, 2025
ead0ba4
feat(client): improve logging
stainless-bot Feb 21, 2025
873e273
chore(internal): fix devcontainers setup
stainless-bot Feb 21, 2025
b55321e
chore(internal): remove unnecessary todo
stainless-bot Feb 21, 2025
cfd2088
feat: add migration guide
stainless-ci-bot Feb 24, 2025
317a04d
fix(tests): stop using node:stream
stainless-ci-bot Feb 25, 2025
0b77c7c
fix(threads): remove unused duplicative types
RobertCraigie Feb 26, 2025
1d4478d
feat(api): add gpt-4.5-preview
stainless-ci-bot Feb 27, 2025
e4e737d
docs: update URLs from stainlessapi.com to stainless.com
stainless-ci-bot Feb 27, 2025
ebd464f
chore(tests): stop using node-fetch, don't directly upload FormDataFile
stainless-em Feb 28, 2025
45a372c
chore(internal): fix lint
stainless-em Feb 28, 2025
f18ced8
chore(docs): update zod tool call example, fix azure tests
stainless-em Feb 28, 2025
d94b41a
chore(internal): update @types/bun
stainless-em Feb 28, 2025
53e35c8
chore(client): only accept standard types for file uploads
stainless-ci-bot Mar 3, 2025
c54270a
chore(internal): fix tests failing on node v18
stainless-app[bot] Mar 3, 2025
0e980d0
fix(client): fix TypeError with undefined File
stainless-ci-bot Mar 3, 2025
da43aa9
fix(internal): clean up undefined File test
stainless-ci-bot Mar 3, 2025
1d18ed4
fix(tests): manually reset node:buffer File
stainless-ci-bot Mar 3, 2025
f1712cd
chore(types): improved go to definition on fetchOptions
stainless-ci-bot Mar 4, 2025
9f4c30b
chore(docs): improve docs for withResponse/asResponse
stainless-ci-bot Mar 4, 2025
b943a0a
fix(api): add missing file rank enum + more metadata
stainless-ci-bot Mar 5, 2025
236dbf4
chore: move ChatModel type to shared
stainless-ci-bot Mar 6, 2025
7ea4a24
feat: add SKIP_BREW env var to ./scripts/bootstrap
stainless-ci-bot Mar 8, 2025
67da9ce
feat(client): accept RFC6838 JSON content types
stainless-ci-bot Mar 10, 2025
d028ad7
fix(exports): ensure resource imports don't require /index
stainless-ci-bot Mar 13, 2025
91af47c
feat(api): add /v1/responses and built-in tools
stainless-ci-bot Mar 11, 2025
66fb815
fix(responses): correct computer use enum value
stainless-ci-bot Mar 11, 2025
1698b95
fix(responses): correct reasoning output type
stainless-ci-bot Mar 11, 2025
ef43345
chore(internal): remove CI condition
stainless-app[bot] Mar 14, 2025
a06deb8
fix(internal): add mts file + crypto shim types
stainless-app[bot] Mar 14, 2025
d1aa00a
chore(internal): minor client file refactoring
stainless-app[bot] Mar 18, 2025
5d75cb9
chore: add missing type alias exports
stainless-app[bot] Mar 18, 2025
3ca8965
fix(api): correct some Responses types
stainless-app[bot] Mar 18, 2025
96ed4db
fix(types): improve responses type names
stainless-app[bot] Mar 18, 2025
0da1c16
chore(exports): cleaner resource index imports
stainless-app[bot] Mar 19, 2025
09af7ff
chore(exports): stop using path fallbacks
stainless-app[bot] Mar 19, 2025
3540b06
feat(api): o1-pro now available through the API
stainless-app[bot] Mar 19, 2025
1eab9ed
feat(api): new models for TTS, STT, + new audio features for Realtime
stainless-app[bot] Mar 20, 2025
bee2ce5
fix(client): remove duplicate types
stainless-app[bot] Mar 20, 2025
6c1be40
codegen metadata
stainless-app[bot] Mar 20, 2025
c735a3c
chore(internal): codegen related update
stainless-app[bot] Mar 20, 2025
a816029
fix(exports): add missing type exports
stainless-app[bot] Mar 25, 2025
1b0a94d
chore: add hash of OpenAPI spec/config inputs to .stats.yml
stainless-app[bot] Mar 26, 2025
0c21914
chore(client): more accurate streaming errors
stainless-app[bot] Mar 26, 2025
38c9d54
chore(client): move misc public files to new `core/` directory, depre…
stainless-app[bot] Mar 26, 2025
28130c7
chore(api): updates to supported Voice IDs
stainless-app[bot] Mar 26, 2025
9697139
feat(api): add `get /chat/completions` endpoint
stainless-app[bot] Mar 27, 2025
f2c5aba
feat(api): add `get /responses/{response_id}/input_items` endpoint
stainless-app[bot] Mar 27, 2025
00bdda3
chore: Remove deprecated/unused remote spec feature
stainless-app[bot] Apr 1, 2025
4560dc6
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
678ae6b
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
5a272a7
fix(client): send `X-Stainless-Timeout` in seconds
stainless-app[bot] Apr 2, 2025
0cb0c86
feat(api): manual updates
stainless-app[bot] Apr 2, 2025
8957ff4
chore(internal): add aliases for Record and Array
stainless-app[bot] Apr 2, 2025
b6bf469
fix(api): improve type resolution when importing as a package
stainless-app[bot] Apr 3, 2025
179a607
feat(api): manual updates
stainless-app[bot] Apr 3, 2025
732d870
chore(docs): improve migration doc
stainless-app[bot] Apr 3, 2025
752f4f1
fix(mcp): remove unused tools.ts
stainless-app[bot] Apr 4, 2025
ee01414
fix(client): send all configured auth headers
stainless-app[bot] Apr 7, 2025
0b30331
chore(tests): improve enum examples
stainless-app[bot] Apr 8, 2025
70092d7
feat(api): Add evalapi to sdk
stainless-app[bot] Apr 8, 2025
db23ff3
chore(internal): fix examples
stainless-app[bot] Apr 8, 2025
5b81f62
chore(internal): skip broken test
stainless-app[bot] Apr 8, 2025
959eace
feat(api): manual updates
stainless-app[bot] Apr 8, 2025
e4a7f67
chore: workaround build errors
stainless-app[bot] Apr 9, 2025
3dcbe17
chore(internal): upload builds and expand CI branch coverage
stainless-app[bot] Apr 9, 2025
ee3f483
chore(internal): improve node 18 shims
stainless-app[bot] Apr 9, 2025
bb39dba
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 9, 2025
abfff03
fix(internal): fix file uploads in node 18 jest
stainless-app[bot] Apr 10, 2025
5032c28
chore(client): minor internal fixes
stainless-app[bot] Apr 14, 2025
8a2a745
feat(api): adding gpt-4.1 family of model IDs
stainless-app[bot] Apr 14, 2025
19cda5d
feat(api): add o3 and o4-mini model IDs
stainless-app[bot] Apr 16, 2025
11b9534
chore(perf): faster base64 decoding
stainless-app[bot] Apr 22, 2025
5775451
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 22, 2025
a0010fd
feat(api): adding new image model support
stainless-app[bot] Apr 23, 2025
e17a4f8
chore(ci): run on more branches and use depot runners
stainless-app[bot] Apr 23, 2025
c59c3b5
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 23, 2025
e7fbfbc
chore(internal): refactor utils
stainless-app[bot] Apr 28, 2025
c44ed98
docs(readme): fix typo
stainless-app[bot] Apr 30, 2025
5495529
chore(docs): add missing deprecation warnings
stainless-app[bot] Apr 30, 2025
3e1ea40
chore(internal): fix format script
stainless-app[bot] May 2, 2025
2470933
chore(internal): share typescript helpers
stainless-app[bot] May 2, 2025
0c25021
feat(api): add image sizes, reasoning encryption
stainless-app[bot] May 2, 2025
7e9ea85
feat(client): add withOptions helper
stainless-app[bot] May 6, 2025
a326944
chore(client): drop support for EOL node versions
stainless-app[bot] May 6, 2025
fa48353
chore(internal): codegen related update
stainless-app[bot] May 7, 2025
e6bbaf5
feat(api): Add reinforcement fine-tuning api support
stainless-app[bot] May 8, 2025
a9c7821
fix(azure): use correct internal method
RobertCraigie May 9, 2025
a9d9511
codegen metadata
stainless-app[bot] May 22, 2025
353349d
chore(internal): fix release workflows
stainless-app[bot] May 22, 2025
c160550
fix(client): always overwrite when merging headers
stainless-app[bot] May 9, 2025
500a82f
chore(package): remove engines
stainless-app[bot] May 12, 2025
b349ade
feat(api): responses x eval api
stainless-app[bot] May 15, 2025
debe529
feat(api): manual updates
stainless-app[bot] May 15, 2025
e68f598
feat(api): Updating Assistants and Evals API schemas
stainless-app[bot] May 16, 2025
3019a7e
feat(api): further updates for evals API
stainless-app[bot] May 16, 2025
3da6b06
codegen metadata
stainless-app[bot] May 19, 2025
d5d62b0
chore(docs): grammar improvements
stainless-app[bot] May 21, 2025
0cc8994
feat(api): new API tools
stainless-app[bot] May 21, 2025
3ffca5c
feat(api): add container endpoint
stainless-app[bot] May 21, 2025
c071491
feat(api): new streaming helpers for background responses
stainless-app[bot] May 22, 2025
36bc838
codegen metadata
stainless-app[bot] May 22, 2025
9278d9a
Merge branch 'alpha-next' into next
RobertCraigie May 23, 2025
84fc31a
fix(azure): add /images/edits to deployments endpoints (#1509)
mikhail May 27, 2025
9eb9854
fix(tests): port tests to new setup
RobertCraigie May 27, 2025
aceaac0
fix(tests/embeddings): avoid cross-realm issue
RobertCraigie May 27, 2025
657807c
fix(responses): support streaming retrieve calls
RobertCraigie May 27, 2025
5b1c0c1
Merge remote-tracking branch 'origin/next' into next
RobertCraigie May 27, 2025
6e424b5
fix(helpers/zod): error on optional + not nullable fields
RobertCraigie May 27, 2025
1e52734
fix(ecosystem-tests/bun): bump dependencies
RobertCraigie May 27, 2025
087580a
fix(tests): don't rely on OPENAI_API_KEY env variable
RobertCraigie May 27, 2025
6fa0675
fix(ecosystem-tests): correct ecosystem tests setup
RobertCraigie May 27, 2025
157248a
fix(ecosystem-tests/cloudflare-worker): ignore lib errors for now
RobertCraigie May 27, 2025
619711a
chore(internal): add proxy ecosystem tests
stainless-em Jan 6, 2025
da6ed5f
chore(tests): switch proxy tests to fetchOptions
stainless-em Jan 31, 2025
cb4194f
chore(internal): add Bun.File ecosystem test
stainless-em Feb 17, 2025
6207a2a
chore: improve publish-npm script --latest tag logic
stainless-app[bot] May 27, 2025
5b34fcd
chore: deprecate Assistants API
stainless-app[bot] May 28, 2025
e29a009
refactor(client): remove deprecated runFunctions method
RobertCraigie May 28, 2025
1f59811
chore: improve publish-npm script --latest tag logic
stainless-app[bot] May 27, 2025
1726e6b
chore: deprecate Assistants API
stainless-app[bot] May 28, 2025
5dc07e6
Merge remote-tracking branch 'origin/next' into next
RobertCraigie May 28, 2025
43b870d
docs(migration): mention zod helpers error
RobertCraigie May 27, 2025
469ad7b
feat(api): Config update for pakrym-stream-param
stainless-app[bot] May 29, 2025
83129d7
fix(client): return binary content from `get /containers/{container_i…
stainless-app[bot] May 29, 2025
b4d1b46
feat(api): Config update for pakrym-stream-param
stainless-app[bot] May 28, 2025
899869b
fix(client): return binary content from `get /containers/{container_i…
stainless-app[bot] May 29, 2025
d7e0bc1
Merge remote-tracking branch 'origin/next' into next
RobertCraigie May 29, 2025
3508099
chore(migration): add beta handling
RobertCraigie May 29, 2025
f743730
fix: compat with more runtimes
stainless-app[bot] May 29, 2025
fdd6f66
refactor(functions): rename function helper methods to include tools
RobertCraigie May 28, 2025
eb773ee
docs(migration): mention function renames
RobertCraigie May 28, 2025
a899c97
chore(internal): bump migration cli version
RobertCraigie May 29, 2025
4c622f9
feat(client): promote beta completions methods to GA
RobertCraigie May 28, 2025
b25135c
Merge remote-tracking branch 'origin/next' into next
RobertCraigie May 29, 2025
47a8350
chore: revert temporary version change
RobertCraigie May 29, 2025
855144b
feat: version 5
RobertCraigie May 29, 2025
4dd408d
release: 5.0.0
stainless-app[bot] May 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
"extensions": ["esbenp.prettier-vscode"]
}
}
}
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/openai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -30,7 +30,7 @@ jobs:
build:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/openai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
permissions:
contents: read
id-token: write
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -49,14 +49,14 @@ jobs:
run: ./scripts/build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/openai-node'
if: github.repository == 'stainless-sdks/openai-typescript'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/openai-node'
if: github.repository == 'stainless-sdks/openai-typescript'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand All @@ -65,7 +65,7 @@ jobs:
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/openai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -83,7 +83,7 @@ jobs:
examples:
timeout-minutes: 10
name: examples
runs-on: ${{ github.repository == 'stainless-sdks/openai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.repository == 'openai/openai-node'

steps:
Expand All @@ -97,10 +97,10 @@ jobs:
run: |
yarn install

- env:
- env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
yarn tsn examples/demo.ts
yarn tsn examples/demo.ts

ecosystem_tests:
name: ecosystem tests (v${{ matrix.node-version }})
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}
run: |
bash ./bin/publish-jsr

1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ jobs:
env:
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
NPM_TOKEN: ${{ secrets.OPENAI_NPM_TOKEN || secrets.NPM_TOKEN }}

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.104.0"
".": "5.0.0"
}
266 changes: 266 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading