Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
a6371ba
fix: update module level client (#2185)
stainless-app[bot] Mar 12, 2025
4e302b3
chore: fix module client (#2188)
stainless-app[bot] Mar 12, 2025
899a10f
chore(internal): remove extra empty newlines (#2195)
stainless-app[bot] Mar 13, 2025
a7591e8
chore(internal): bump rye to 0.44.0 (#2200)
stainless-app[bot] Mar 14, 2025
f3f5279
chore(internal): remove CI condition (#2203)
stainless-app[bot] Mar 14, 2025
e4d424d
fix(types): handle more discriminated union shapes (#2206)
stainless-app[bot] Mar 14, 2025
3fb740a
fix(ci): ensure pip is always available (#2207)
stainless-app[bot] Mar 17, 2025
b0ae776
fix(ci): remove publishing patch (#2208)
stainless-app[bot] Mar 17, 2025
810c32f
chore(internal): version bump (#2210)
stainless-app[bot] Mar 17, 2025
7484265
chore(internal): codegen related update (#2222)
stainless-app[bot] Mar 18, 2025
33d7559
fix(types): improve responses type names (#2224)
stainless-app[bot] Mar 18, 2025
6ab1876
chore(internal): version bump (#2226)
stainless-app[bot] Mar 18, 2025
001707b
feat(api): o1-pro now available through the API (#2228)
stainless-app[bot] Mar 19, 2025
e03f441
chore(internal): version bump (#2230)
stainless-app[bot] Mar 19, 2025
0633d70
feat(api): new models for TTS, STT, + new audio features for Realtime…
stainless-app[bot] Mar 20, 2025
c676fdc
chore(internal): version bump (#2234)
stainless-app[bot] Mar 20, 2025
bf53ba0
fix(client): remove duplicate types (#2235)
stainless-app[bot] Mar 20, 2025
a13e6f2
codegen metadata
stainless-app[bot] Mar 20, 2025
27be751
chore(internal): version bump (#2241)
stainless-app[bot] Mar 21, 2025
bc7cb8d
chore(internal): version bump (#2243)
stainless-app[bot] Mar 21, 2025
1b55ca8
chore: fix typos (#2259)
stainless-app[bot] Mar 26, 2025
ca78d56
chore: add hash of OpenAPI spec/config inputs to .stats.yml
stainless-app[bot] Mar 26, 2025
4df2e12
chore(api): updates to supported Voice IDs (#2261)
stainless-app[bot] Mar 26, 2025
6465138
feat(api): add `get /chat/completions` endpoint
stainless-app[bot] Mar 27, 2025
96fb800
chore(internal): version bump (#2263)
stainless-app[bot] Mar 27, 2025
81f9887
feat(api): add `get /responses/{response_id}/input_items` endpoint
stainless-app[bot] Mar 27, 2025
b995a68
chore(internal): version bump (#2270)
stainless-app[bot] Mar 31, 2025
505d193
chore: Remove deprecated/unused remote spec feature
stainless-app[bot] Apr 1, 2025
32529a8
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
ffcd9bf
feat(api): manual updates
stainless-app[bot] Apr 1, 2025
67cdecb
feat(api): manual updates
stainless-app[bot] Apr 2, 2025
6bd1777
chore(internal): remove trailing character (#2277)
stainless-app[bot] Apr 3, 2025
2838a5c
feat(api): manual updates
stainless-app[bot] Apr 3, 2025
3c02634
chore(deps): allow websockets v15 (#2281)
stainless-app[bot] Apr 7, 2025
4e34f3c
chore(internal): only run examples workflow in main repo (#2282)
stainless-app[bot] Apr 7, 2025
3b198a9
chore(internal): version bump (#2283)
stainless-app[bot] Apr 7, 2025
7930166
chore(internal): slight transform perf improvement (#2284)
stainless-app[bot] Apr 8, 2025
de9532c
chore(tests): improve enum examples (#2286)
stainless-app[bot] Apr 8, 2025
7e8b317
feat(api): Add evalapi to sdk (#2287)
stainless-app[bot] Apr 8, 2025
5b7edcb
chore(internal): fix examples (#2288)
stainless-app[bot] Apr 8, 2025
28b67f8
chore(internal): skip broken test (#2289)
stainless-app[bot] Apr 8, 2025
3e60c2b
chore(internal): version bump
stainless-app[bot] Apr 8, 2025
47f665f
feat(api): manual updates
stainless-app[bot] Apr 8, 2025
9f4fe1e
chore: slight wording improvement in README (#2291)
stainless-app[bot] Apr 8, 2025
77ba555
chore: workaround build errors
stainless-app[bot] Apr 9, 2025
df512fd
chore(internal): expand CI branch coverage (#2295)
stainless-app[bot] Apr 9, 2025
c4f3600
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 9, 2025
7bebf30
fix(perf): skip traversing types for NotGiven values
stainless-app[bot] Apr 11, 2025
243bd86
fix(perf): optimize some hot paths
stainless-app[bot] Apr 11, 2025
f6ca6a4
chore(internal): version bump
stainless-app[bot] Apr 12, 2025
191a8fe
chore(internal): update pyright settings
stainless-app[bot] Apr 14, 2025
03627ac
chore(client): minor internal fixes
stainless-app[bot] Apr 14, 2025
d7d41e4
feat(api): adding gpt-4.1 family of model IDs
stainless-app[bot] Apr 14, 2025
87a4b57
chore(internal): version bump
stainless-app[bot] Apr 14, 2025
f7f5e1d
chore(internal): bump pyright version
stainless-app[bot] Apr 16, 2025
83100d3
chore(internal): base client updates
stainless-app[bot] Apr 16, 2025
c0f3775
chore(internal): version bump
stainless-app[bot] Apr 16, 2025
8ede825
feat(api): add o3 and o4-mini model IDs
stainless-app[bot] Apr 16, 2025
3c3b2c5
chore(internal): version bump
stainless-app[bot] Apr 16, 2025
160a80a
chore(internal): update models test
stainless-app[bot] Apr 18, 2025
aa9aa80
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 22, 2025
a2f02a3
chore(internal): import reformatting
stainless-app[bot] Apr 22, 2025
8000c85
chore(internal): fix list file params
stainless-app[bot] Apr 22, 2025
98b9af1
chore(internal): refactor retries to not use recursion
stainless-app[bot] Apr 22, 2025
b319df4
fix(pydantic v1): more robust ModelField.annotation check
stainless-app[bot] Apr 22, 2025
caf844c
chore(internal): minor formatting changes
stainless-app[bot] Apr 23, 2025
13640c0
feat(api): adding new image model support
stainless-app[bot] Apr 23, 2025
8bd661e
chore(internal): version bump
stainless-app[bot] Apr 23, 2025
bd89951
chore(ci): run on more branches and use depot runners
stainless-app[bot] Apr 23, 2025
6049181
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 23, 2025
6baafcf
chore: broadly detect json family of content-type headers
stainless-app[bot] Apr 23, 2025
cd7b2d2
chore(internal): codegen related update
stainless-app[bot] Apr 29, 2025
075ca17
chore(api): API spec cleanup
stainless-app[bot] Apr 29, 2025
ee92b44
chore(internal): codegen related update
stainless-app[bot] Apr 29, 2025
306e7b6
feat(api): add image sizes, reasoning encryption
stainless-app[bot] May 2, 2025
5f513b4
chore(internal): version bump
stainless-app[bot] May 2, 2025
47a3ef4
chore: use lazy imports for module level client
stainless-app[bot] May 5, 2025
21f1415
chore: use lazy imports for resources
stainless-app[bot] May 5, 2025
e92f818
chore(internal): update proxy tests
stainless-app[bot] May 8, 2025
708cfa6
feat(api): Add reinforcement fine-tuning api support
stainless-app[bot] May 8, 2025
85e6888
chore(internal): version bump
stainless-app[bot] May 8, 2025
0005b7c
fix(package): support direct resource imports
stainless-app[bot] May 9, 2025
2f3fb30
chore(internal): version bump
stainless-app[bot] May 12, 2025
5d295e4
chore(ci): upload sdks to package manager
stainless-app[bot] May 14, 2025
2b516e2
chore(ci): fix installation instructions
stainless-app[bot] May 15, 2025
f3e424b
feat(api): responses x eval api
stainless-app[bot] May 15, 2025
ce93297
feat(api): manual updates
stainless-app[bot] May 15, 2025
1d664a6
feat(api): Updating Assistants and Evals API schemas
stainless-app[bot] May 16, 2025
09a1199
feat(api): further updates for evals API
stainless-app[bot] May 16, 2025
6300e0f
chore(internal): version bump
stainless-app[bot] May 16, 2025
7dd250f
codegen metadata
stainless-app[bot] May 19, 2025
4561a4f
chore(docs): grammar improvements
stainless-app[bot] May 21, 2025
f35d068
feat(api): new API tools
stainless-app[bot] May 21, 2025
5e1741d
chore(internal): version bump
stainless-app[bot] May 21, 2025
07853b8
feat(api): add container endpoint
stainless-app[bot] May 21, 2025
47184ab
chore(internal): version bump
stainless-app[bot] May 21, 2025
56b3449
feat(api): new streaming helpers for background responses
stainless-app[bot] May 22, 2025
e73dda3
chore(internal): version bump
stainless-app[bot] May 22, 2025
6add7ad
codegen metadata
stainless-app[bot] May 22, 2025
d148914
chore(internal): fix release workflows
stainless-app[bot] May 22, 2025
6f1143b
chore: deprecate Assistants API
stainless-app[bot] May 28, 2025
bd18047
chore(api): mark some methods as deprecated
stainless-app[bot] May 28, 2025
df3b709
feat(api): Config update for pakrym-stream-param
stainless-app[bot] May 28, 2025
0818b85
fix(client): return binary content from `get /containers/{container_i…
stainless-app[bot] May 29, 2025
93fa8c7
chore(internal): version bump
stainless-app[bot] May 29, 2025
6274b50
codegen metadata
stainless-app[bot] May 29, 2025
0bc6306
chore(docs): remove reference to rye shell
stainless-app[bot] Jun 2, 2025
6a9cc49
feat(client): add follow_redirects request option
stainless-app[bot] Jun 2, 2025
e73358c
fix(api): Fix evals and code interpreter interfaces
stainless-app[bot] Jun 2, 2025
10dc28e
chore(internal): version bump
stainless-app[bot] Jun 2, 2025
bb132ed
feat(api): add new realtime and audio models, realtime session options
stainless-app[bot] Jun 3, 2025
8817d06
chore(api): update type names
stainless-app[bot] Jun 3, 2025
752d615
chore(internal): version bump
stainless-app[bot] Jun 3, 2025
2a70aad
feat(api): Add tools and structured outputs to evals
stainless-app[bot] Jun 9, 2025
f1ef1cc
chore(internal): version bump
stainless-app[bot] Jun 9, 2025
5e58a11
feat(api): Add o3-pro model IDs
stainless-app[bot] Jun 10, 2025
4fb611a
chore(internal): version bump
stainless-app[bot] Jun 10, 2025
1cd15ee
chore(internal): codegen related update
stainless-app[bot] Jun 13, 2025
6aa40a5
chore(tests): add tests for httpx client instantiation & proxies
stainless-app[bot] Jun 16, 2025
70719e9
feat(api): add reusable prompt IDs
stainless-app[bot] Jun 16, 2025
7a47afd
chore(internal): update conftest.py
stainless-app[bot] Jun 16, 2025
58117b8
chore(internal): version bump
stainless-app[bot] Jun 16, 2025
44fdb60
feat(api): manual updates
stainless-app[bot] Jun 16, 2025
972df43
chore(internal): minor formatting
stainless-app[bot] Jun 16, 2025
7055941
chore(ci): enable for pull requests
stainless-app[bot] Jun 17, 2025
415d96b
chore(internal): version bump
stainless-app[bot] Jun 17, 2025
9bf3b76
chore(readme): update badges
stainless-app[bot] Jun 17, 2025
efdb595
chore(types): remove incorrect __test__ annotation
stainless-app[bot] Jun 17, 2025
b575834
fix(tests): fix: tests which call HTTP endpoints directly with the ex…
stainless-app[bot] Jun 17, 2025
7b9e914
docs(client): fix httpx.Timeout documentation reference
stainless-app[bot] Jun 18, 2025
d7700af
feat(client): add support for aiohttp
stainless-app[bot] Jun 20, 2025
27c0929
chore(internal): version bump
stainless-app[bot] Jun 20, 2025
e541f8f
feat(api): make model and inputs not required to create response
stainless-app[bot] Jun 20, 2025
f7eb41d
chore(internal): version bump
stainless-app[bot] Jun 20, 2025
8707913
feat(api): update api shapes for usage and code interpreter
stainless-app[bot] Jun 23, 2025
b533e91
chore(internal): version bump
stainless-app[bot] Jun 23, 2025
2cbcb85
chore(tests): skip some failing tests on the latest python versions
stainless-app[bot] Jun 23, 2025
0855d73
chore(internal): add tests for breaking change detection
stainless-app[bot] Jun 24, 2025
f43c7b5
fix(ci): release-doctor — report correct token name
stainless-app[bot] Jun 26, 2025
2c404fc
feat(api): webhook and deep research support
stainless-app[bot] Jun 26, 2025
49679a4
chore(internal): version bump
stainless-app[bot] Jun 26, 2025
1d38a00
chore(internal): version bump
stainless-app[bot] Jun 26, 2025
43890e1
chore(api): remove unsupported property
stainless-app[bot] Jun 26, 2025
0077877
chore(internal): version bump
stainless-app[bot] Jun 26, 2025
fb0a397
codegen metadata
stainless-app[bot] Jun 27, 2025
d5e7027
chore(internal): version bump
stainless-app[bot] Jun 27, 2025
3cf7aca
codegen metadata
stainless-app[bot] Jun 27, 2025
82ec59c
chore(internal): codegen related update
stainless-app[bot] Jun 27, 2025
b5d50c7
chore(ci): only run for pushes and fork pull requests
stainless-app[bot] Jun 27, 2025
9e54b45
fix(ci): correct conditional
stainless-app[bot] Jun 29, 2025
da8817d
chore(ci): change upload type
stainless-app[bot] Jul 1, 2025
c96d9f0
chore(internal): codegen related update
stainless-app[bot] Jul 7, 2025
e9650c3
chore(internal): version bump
stainless-app[bot] Jul 7, 2025
2b92213
chore(internal): bump pinned h11 dep
stainless-app[bot] Jul 8, 2025
bcc7ed6
chore(package): mark python 3.13 as supported
stainless-app[bot] Jul 8, 2025
8d399bc
chore(internal): version bump
stainless-app[bot] Jul 8, 2025
7716e41
fix(parsing): correctly handle nested discriminated unions
stainless-app[bot] Jul 9, 2025
04e67a3
chore(internal): version bump
stainless-app[bot] Jul 9, 2025
b037335
chore(internal): version bump
stainless-app[bot] Jul 10, 2025
7ea31f4
chore(readme): fix version rendering on pypi
stainless-app[bot] Jul 10, 2025
49d4987
feat(api): add file_url, fix event ID
stainless-app[bot] Jul 10, 2025
4649363
chore(internal): version bump
stainless-app[bot] Jul 10, 2025
322f791
fix(client): don't send Content-Type header on GET requests
stainless-app[bot] Jul 11, 2025
8f3d181
codegen metadata
stainless-app[bot] Jul 11, 2025
770827f
codegen metadata
stainless-app[bot] Jul 11, 2025
a9fa5a7
codegen metadata
stainless-app[bot] Jul 11, 2025
1fe6bb6
chore(internal): version bump
stainless-app[bot] Jul 11, 2025
6654122
feat: clean up environment call outs
stainless-app[bot] Jul 14, 2025
b5cbf54
codegen metadata
stainless-app[bot] Jul 15, 2025
a2deead
chore(api): update realtime specs, build config
stainless-app[bot] Jul 15, 2025
cdb000d
chore(internal): version bump
stainless-app[bot] Jul 15, 2025
05f91a3
codegen metadata
stainless-app[bot] Jul 15, 2025
2cd5f11
chore(api): update realtime specs
stainless-app[bot] Jul 15, 2025
ff824d2
chore(internal): version bump
stainless-app[bot] Jul 15, 2025
0455cef
feat(api): manual updates
stainless-app[bot] Jul 16, 2025
97f7a26
chore(internal): version bump
stainless-app[bot] Jul 16, 2025
c0cb707
codegen metadata
stainless-app[bot] Jul 16, 2025
44c4305
fix(parsing): ignore empty metadata
stainless-app[bot] Jul 21, 2025
e150dc4
chore(api): event shapes more accurate
stainless-app[bot] Jul 21, 2025
b1124a6
fix(parsing): parse extra field types
stainless-app[bot] Jul 22, 2025
0a056ae
chore(internal): version bump
stainless-app[bot] Jul 22, 2025
6f3da58
chore(project): add settings file for vscode
stainless-app[bot] Jul 24, 2025
f8b3c7a
chore(internal): version bump
stainless-app[bot] Jul 30, 2025
d51d5ec
feat(api): manual updates
stainless-app[bot] Jul 30, 2025
d08b027
chore(internal): version bump
stainless-app[bot] Jul 30, 2025
f3a89aa
feat(client): support file upload requests
stainless-app[bot] Jul 30, 2025
e01d394
chore(internal): fix ruff target version
stainless-app[bot] Aug 5, 2025
8ff7a62
feat(api): manual updates
stainless-app[bot] Aug 5, 2025
d642c6a
chore(internal): version bump
stainless-app[bot] Aug 5, 2025
7b9099d
chore(internal): version bump
stainless-app[bot] Aug 5, 2025
228a715
feat(api): adds GPT-5 and new API features: platform.openai.com/docs/…
stainless-app[bot] Aug 7, 2025
43b6f02
chore(internal): version bump
stainless-app[bot] Aug 7, 2025
55a2d4c
codegen metadata
stainless-app[bot] Aug 7, 2025
797c90c
chore(internal): version bump
stainless-app[bot] Aug 7, 2025
dbabb5f
codegen metadata
stainless-app[bot] Aug 7, 2025
fb78251
codegen metadata
stainless-app[bot] Aug 7, 2025
55b8103
fix(types): rename chat completion tool
stainless-app[bot] Aug 8, 2025
c7bd838
chore(internal): version bump
stainless-app[bot] Aug 8, 2025
0203151
fix(client): fix verbosity parameter location in Responses
stainless-app[bot] Aug 8, 2025
b3b1a35
chore(internal): version bump
stainless-app[bot] Aug 8, 2025
4938eed
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 8, 2025
09d2c78
chore(internal): update comment in script
stainless-app[bot] Aug 8, 2025
2ec816c
chore(internal): version bump
stainless-app[bot] Aug 9, 2025
7b26f6e
fix(types): rename ChatCompletionMessageToolCallParam
stainless-app[bot] Aug 11, 2025
54c6ddc
chore(internal): version bump
stainless-app[bot] Aug 11, 2025
aa7ac3f
chore(internal): version bump
stainless-app[bot] Aug 11, 2025
54ba661
chore(internal): version bump
stainless-app[bot] Aug 12, 2025
f761290
feat(api): add new text parameters, expiration options
stainless-app[bot] Aug 15, 2025
1a6571d
chore(internal): version bump
stainless-app[bot] Aug 18, 2025
bcb895c
chore(internal): version bump
stainless-app[bot] Aug 18, 2025
5dfbb4a
chore(api): accurately represent shape for verbosity on Chat Completions
stainless-app[bot] Aug 19, 2025
ff18bfe
chore(internal): version bump
stainless-app[bot] Aug 19, 2025
efaf87f
chore: no-op
stainless-app[bot] Aug 19, 2025
de59e31
chore(internal/ci): setup breaking change detection
stainless-app[bot] Aug 19, 2025
bf5c699
chore(internal): version bump
stainless-app[bot] Aug 20, 2025
5741416
feat(api): adding support for /v1/conversations to the API
stainless-app[bot] Aug 21, 2025
b57196a
chore: update github action
stainless-app[bot] Aug 21, 2025
e306e52
feat(api): Add connectors support for MCP tool
stainless-app[bot] Aug 21, 2025
f43cda8
chore(internal): version bump
stainless-app[bot] Aug 21, 2025
8b05902
chore(internal): change ci workflow machines
stainless-app[bot] Aug 25, 2025
ff3ffbb
chore(internal): codegen related update
stainless-app[bot] Aug 26, 2025
3a0337b
fix: avoid newer type syntax
stainless-app[bot] Aug 26, 2025
a1d0afa
feat(api): add web search filters
stainless-app[bot] Aug 26, 2025
afdc410
chore(internal): version bump
stainless-app[bot] Aug 26, 2025
4cca524
chore(internal): update pyright exclude list
stainless-app[bot] Aug 26, 2025
dc6a791
chore(internal): minor formatting change
stainless-app[bot] Aug 27, 2025
4e45031
chore(internal): add Sequence related utils
stainless-app[bot] Aug 29, 2025
49e9a08
feat(api): realtime API updates
stainless-app[bot] Sep 2, 2025
ef6cea1
chore(internal): version bump
stainless-app[bot] Sep 2, 2025
a6536d6
feat(types): replace List[str] with SequenceNotStr in params
stainless-app[bot] Sep 2, 2025
52fd627
chore(internal): version bump
stainless-app[bot] Sep 2, 2025
2493824
chore(api): manual updates for ResponseInputAudio
stainless-app[bot] Sep 2, 2025
f1eadae
chore(internal): version bump
stainless-app[bot] Sep 2, 2025
75354f3
chore(internal): version bump
stainless-app[bot] Sep 2, 2025
56e5a30
feat(api): Add gpt-realtime models
stainless-app[bot] Sep 3, 2025
1d2180c
chore(internal): version bump
stainless-app[bot] Sep 3, 2025
aabe856
feat: improve future compat with pydantic v3
stainless-app[bot] Sep 3, 2025
e965504
chore(internal): version bump
stainless-app[bot] Sep 4, 2025
e6e5e59
chore(internal): move mypy configurations to `pyproject.toml` file
stainless-app[bot] Sep 4, 2025
84c23ec
chore(internal): version bump
stainless-app[bot] Sep 4, 2025
94b3989
chore(internal): codegen related update
stainless-app[bot] Sep 5, 2025
b78a873
feat(api): ship the RealtimeGA API shape
stainless-app[bot] Sep 8, 2025
9b66a34
chore(internal): version bump
stainless-app[bot] Sep 8, 2025
639a9f5
chore(api): fix realtime GA types
stainless-app[bot] Sep 10, 2025
077155d
chore(internal): version bump
stainless-app[bot] Sep 10, 2025
63a01ff
chore(api): Minor docs and type updates for realtime
stainless-app[bot] Sep 11, 2025
cea5862
codegen metadata
stainless-app[bot] Sep 11, 2025
7edfc9e
chore(tests): simplify `get_platform` test
stainless-app[bot] Sep 11, 2025
6ef83c6
chore(internal): version bump
stainless-app[bot] Sep 12, 2025
91c0da4
Update _base_client.py
shaeenhaque Sep 14, 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: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/home/vscode/.rye/shims:$PATH

RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# This file is used to automatically assign reviewers to PRs
# For more information see: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

* @openai/sdks-team
64 changes: 0 additions & 64 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/pull_request_template.md

This file was deleted.

102 changes: 88 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,94 @@
name: CI
on:
push:
branches:
- main
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches:
- main
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

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

runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run lints
run: ./scripts/lint

build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/openai-python'
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-python'
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-python'

runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Bootstrap
Expand All @@ -51,3 +97,31 @@ jobs:
- name: Run tests
run: ./scripts/test

examples:
timeout-minutes: 10
name: examples
runs-on: ${{ github.repository == 'stainless-sdks/openai-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.repository == 'openai/openai-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)

steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install dependencies
run: |
rye sync --all-features

- env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
rye run python examples/demo.py
- env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
rye run python examples/async_demo.py
6 changes: 3 additions & 3 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- name: Install Rye
if: ${{ steps.release.outputs.releases_created }}
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_INSTALL_OPTION: "--yes"
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Publish to PyPI
if: ${{ steps.release.outputs.releases_created }}
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/detect-breaking-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI
on:
pull_request:
branches:
- main
- next

jobs:
detect_breaking_changes:
runs-on: 'ubuntu-latest'
name: detect-breaking-changes
if: github.repository == 'openai/openai-python'
steps:
- name: Calculate fetch-depth
run: |
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV

- uses: actions/checkout@v4
with:
# Ensure we can check out the pull request base in the script below.
fetch-depth: ${{ env.FETCH_DEPTH }}

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install dependencies
run: |
rye sync --all-features
- name: Detect removed symbols
run: |
rye run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"

- name: Detect breaking changes
run: |
# Try to check out previous versions of the breaking change detection script. This ensures that
# we still detect breaking changes when entire files and their tests are removed.
git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
6 changes: 3 additions & 3 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.24.0
RYE_INSTALL_OPTION: "--yes"
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Publish to PyPI
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode
.prism.log
_dev

__pycache__
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.30.1"
".": "1.107.2"
}
6 changes: 4 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 64
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-363dd904e5d6e65b3a323fc88e6b502fb23a6aa319be219273e3ee47c7530993.yml
configured_endpoints: 118
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-94b1e3cb0bdc616ff0c2f267c33dadd95f133b1f64e647aab6c64afb292b2793.yml
openapi_spec_hash: 2395319ac9befd59b6536ae7f9564a05
config_hash: 930dac3aa861344867e4ac84f037b5df
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.analysis.importFormat": "relative",
}
Loading