Skip to content

v5 updates #1483

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

Draft
wants to merge 73 commits into
base: alpha
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
57f00c2
chore(types): improved go to definition on fetchOptions
stainless-ci-bot Mar 4, 2025
8f51562
chore(docs): improve docs for withResponse/asResponse
stainless-ci-bot Mar 4, 2025
979725f
fix(api): add missing file rank enum + more metadata
stainless-ci-bot Mar 5, 2025
dee1e4a
chore: move ChatModel type to shared
stainless-ci-bot Mar 6, 2025
453b58c
feat: add SKIP_BREW env var to ./scripts/bootstrap
stainless-ci-bot Mar 8, 2025
c17d57d
feat(client): accept RFC6838 JSON content types
stainless-ci-bot Mar 10, 2025
87d9e82
feat(api): add /v1/responses and built-in tools
stainless-ci-bot Mar 11, 2025
77cb401
fix(responses): correct computer use enum value
stainless-ci-bot Mar 11, 2025
bf7d7df
fix(responses): correct reasoning output type
stainless-ci-bot Mar 11, 2025
15d2fef
chore(internal): remove extra empty newlines
stainless-ci-bot Mar 13, 2025
fc45cdb
fix(exports): ensure resource imports don't require /index
stainless-ci-bot Mar 13, 2025
07b8b23
chore(internal): remove CI condition
stainless-app[bot] Mar 14, 2025
20e871c
fix(internal): add mts file + crypto shim types
stainless-app[bot] Mar 14, 2025
16b9e06
chore(internal): minor client file refactoring
stainless-app[bot] Mar 18, 2025
1c7eaaf
chore: add missing type alias exports
stainless-app[bot] Mar 18, 2025
04721e5
fix(api): correct some Responses types
stainless-app[bot] Mar 18, 2025
4167993
fix(types): improve responses type names
stainless-app[bot] Mar 18, 2025
ea04e9e
chore(exports): cleaner resource index imports
stainless-app[bot] Mar 19, 2025
845ea17
chore(exports): stop using path fallbacks
stainless-app[bot] Mar 19, 2025
e7f291f
feat(api): o1-pro now available through the API
stainless-app[bot] Mar 19, 2025
25dc24c
feat(api): new models for TTS, STT, + new audio features for Realtime
stainless-app[bot] Mar 20, 2025
1727b8e
fix(client): remove duplicate types
stainless-app[bot] Mar 20, 2025
21f5c3a
codegen metadata
stainless-app[bot] Mar 20, 2025
1567852
chore(internal): codegen related update
stainless-app[bot] Mar 20, 2025
60cddbd
fix(exports): add missing type exports
stainless-app[bot] Mar 25, 2025
dae47ed
chore: add hash of OpenAPI spec/config inputs to .stats.yml
stainless-app[bot] Mar 26, 2025
61b5b2d
chore(client): more accurate streaming errors
stainless-app[bot] Mar 26, 2025
af0b603
chore(client): move misc public files to new `core/` directory, depre…
stainless-app[bot] Mar 26, 2025
c3b306a
chore(api): updates to supported Voice IDs
stainless-app[bot] Mar 26, 2025
63b99b3
feat(api): add `get /chat/completions` endpoint
stainless-app[bot] Mar 27, 2025
d25e995
feat(api): add `get /responses/{response_id}/input_items` endpoint
stainless-app[bot] Mar 27, 2025
35556bb
chore: Remove deprecated/unused remote spec feature
stainless-app[bot] Apr 1, 2025
15a6a09
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
9bfff6e
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
62b1765
fix(client): send `X-Stainless-Timeout` in seconds
stainless-app[bot] Apr 2, 2025
ae2d5b1
feat(api): manual updates
stainless-app[bot] Apr 2, 2025
4af1450
chore(internal): add aliases for Record and Array
stainless-app[bot] Apr 2, 2025
42a53e4
fix(api): improve type resolution when importing as a package
stainless-app[bot] Apr 3, 2025
152206c
feat(api): manual updates
stainless-app[bot] Apr 3, 2025
1aa2308
chore(docs): improve migration doc
stainless-app[bot] Apr 3, 2025
3c2608c
fix(mcp): remove unused tools.ts
stainless-app[bot] Apr 4, 2025
63f10a0
fix(client): send all configured auth headers
stainless-app[bot] Apr 7, 2025
e3f58b4
chore(tests): improve enum examples
stainless-app[bot] Apr 8, 2025
fef5ac3
feat(api): Add evalapi to sdk
stainless-app[bot] Apr 8, 2025
b1c6969
chore(internal): fix examples
stainless-app[bot] Apr 8, 2025
d8a20e4
chore(internal): skip broken test
stainless-app[bot] Apr 8, 2025
3fd6eb5
feat(api): manual updates
stainless-app[bot] Apr 8, 2025
c794f0d
chore: workaround build errors
stainless-app[bot] Apr 9, 2025
ddff8f3
chore(internal): upload builds and expand CI branch coverage
stainless-app[bot] Apr 9, 2025
0b47a84
chore(internal): improve node 18 shims
stainless-app[bot] Apr 9, 2025
f862981
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 9, 2025
d10fe31
fix(internal): fix file uploads in node 18 jest
stainless-app[bot] Apr 10, 2025
8750a53
chore(client): minor internal fixes
stainless-app[bot] Apr 14, 2025
e254d9c
feat(api): adding gpt-4.1 family of model IDs
stainless-app[bot] Apr 14, 2025
e717a3d
feat(api): add o3 and o4-mini model IDs
stainless-app[bot] Apr 16, 2025
37b1a1d
chore(internal): run example files in CI (#1357)
stainless-app[bot] Mar 4, 2025
21592fb
feat(api): add custom code for responses and built-in tools
stainless-em Apr 21, 2025
256ebfc
chore(internal): run CI on update-specs branch
stainless-em Apr 21, 2025
3aa6da2
chore(internal): update next.js
stainless-em Apr 21, 2025
3d8efaf
fix(docs): correct docstring on responses.stream
stainless-em Apr 21, 2025
1b8eeb7
fix(types): export AssistantStream
stainless-em Apr 21, 2025
d795a1e
fix(audio): correctly handle transcription streaming
stainless-em Apr 21, 2025
906e48a
fix(zod): warn on optional field usage
stainless-em Apr 21, 2025
73b343e
feat: add audio helpers
stainless-em Apr 21, 2025
109f7d5
perf(embedding): default embedding creation to base64
stainless-em Apr 21, 2025
f7a555f
fix(embeddings): correctly construct datas
RobertCraigie Apr 24, 2025
6707687
chore(internal): fix lint
RobertCraigie Apr 24, 2025
dc9a507
chore(internal): run CI on alpha
RobertCraigie Apr 24, 2025
9dedb93
chore(perf): faster base64 decoding
stainless-app[bot] Apr 22, 2025
73b38e6
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 22, 2025
4976f59
feat(api): adding new image model support
stainless-app[bot] Apr 23, 2025
86676d3
chore(ci): run on more branches and use depot runners
stainless-app[bot] Apr 23, 2025
7273cd8
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 51 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
- next
- alpha
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-node'

runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -30,10 +28,12 @@ jobs:
run: ./scripts/lint

build:
timeout-minutes: 5
name: build
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-node'

runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -47,11 +47,25 @@ jobs:

- name: Check build
run: ./scripts/build

- name: Get GitHub OIDC Token
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-typescript'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-node'

runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -66,9 +80,29 @@ jobs:
- name: Run tests
run: ./scripts/test

examples:
name: examples
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'
- name: Install dependencies
run: |
yarn install

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

ecosystem_tests:
name: ecosystem tests (v${{ matrix.node-version }})
runs-on: ubuntu-latest
runs-on: ${{ github.repository == 'stainless-sdks/openai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.repository == 'openai/openai-node'
timeout-minutes: 20
strategy:
Expand Down
6 changes: 4 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 74
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-5d30684c3118d049682ea30cdb4dbef39b97d51667da484689193dc40162af32.yml
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-8b68ae6b807dca92e914da1dd9e835a20f69b075e79102a264367fd7fddddb33.yml
openapi_spec_hash: b6ade5b1a6327339e6669e1134de2d03
config_hash: b597cd9a31e9e5ec709e2eefb4c54122
Loading