Skip to content

Generated #2542

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

Closed
wants to merge 374 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
374 commits
Select commit Hold shift + click to select a range
b5f4324
docs(readme): fix http client proxies example (#1932)
stainless-app[bot] Dec 9, 2024
850142e
chore(internal): bump pyright (#1939)
stainless-app[bot] Dec 12, 2024
11be09a
chore(internal): add support for TypeAliasType (#1942)
stainless-app[bot] Dec 12, 2024
22ef350
chore(internal): remove some duplicated imports (#1946)
stainless-app[bot] Dec 13, 2024
06cac42
chore(internal): updated imports (#1948)
stainless-app[bot] Dec 13, 2024
ceff94d
docs(readme): example snippet for client context manager (#1953)
stainless-app[bot] Dec 16, 2024
bce8998
chore(internal): fix some typos (#1955)
stainless-app[bot] Dec 17, 2024
b3143fd
feat(api): new o1 and GPT-4o models + preference fine-tuning (#1956)
stainless-app[bot] Dec 17, 2024
8141095
feat: add Realtime API support (#1958)
stainless-app[bot] Dec 17, 2024
7a9e01a
chore(realtime): update docstrings (#1964)
stainless-app[bot] Dec 18, 2024
bf69f0a
chore: bump license year (#1981)
stainless-app[bot] Jan 2, 2025
78e811a
chore(api): bump spec version (#1985)
stainless-app[bot] Jan 3, 2025
928a1d2
chore: add missing isclass check (#1988)
stainless-app[bot] Jan 6, 2025
759505d
chore(internal): bump httpx dependency (#1990)
stainless-app[bot] Jan 7, 2025
f64bec6
fix(client): only call .close() when needed (#1992)
stainless-app[bot] Jan 7, 2025
3d92ba9
docs: fix typos (#1996)
stainless-app[bot] Jan 8, 2025
e7b908c
docs: more typo fixes (#1998)
stainless-app[bot] Jan 8, 2025
20569b5
docs(readme): fix misplaced period (#1999)
stainless-app[bot] Jan 8, 2025
2684cd1
chore(internal): spec update (#2000)
stainless-app[bot] Jan 8, 2025
2a9d5fb
fix: correctly handle deserialising `cls` fields (#2002)
stainless-app[bot] Jan 9, 2025
e233bd4
chore(internal): streaming refactors (#2012)
stainless-app[bot] Jan 13, 2025
b3e167a
chore(internal): update deps (#2015)
stainless-app[bot] Jan 14, 2025
21ff2e6
fix(types): correct type for vector store chunking strategy (#2017)
stainless-app[bot] Jan 14, 2025
2c73a8b
chore(internal): bump pyright dependency (#2021)
stainless-app[bot] Jan 15, 2025
1fdaea4
fix: flush stream response when done event is sent (#2036)
stainless-app[bot] Jan 20, 2025
818de7b
docs(raw responses): fix duplicate `the` (#2039)
stainless-app[bot] Jan 20, 2025
f7c814b
fix(tests): make test_get_platform less flaky (#2040)
stainless-app[bot] Jan 20, 2025
9b5ea1b
chore(internal): avoid pytest-asyncio deprecation warning (#2041)
stainless-app[bot] Jan 20, 2025
7f81d21
chore(internal): minor style changes (#2043)
stainless-app[bot] Jan 21, 2025
b9824d2
feat(api): update enum values, comments, and examples (#2045)
stainless-app[bot] Jan 22, 2025
46ad497
chore(internal): minor formatting changes (#2050)
stainless-app[bot] Jan 23, 2025
01c5ec6
chore: update api.md (#2063)
stainless-app[bot] Jan 30, 2025
f394685
feat(api): add o3-mini (#2067)
stainless-app[bot] Jan 31, 2025
f703831
chore(internal): change default timeout to an int (#2079)
stainless-app[bot] Feb 3, 2025
9c0763f
chore(internal): bummp ruff dependency (#2080)
stainless-app[bot] Feb 3, 2025
7608193
fix(api/types): correct audio duration & role types (#2091)
stainless-app[bot] Feb 5, 2025
9b4ca5c
feat(client): send `X-Stainless-Read-Timeout` header (#2094)
stainless-app[bot] Feb 5, 2025
7e7744f
fix(api): add missing reasoning effort + model enums (#2096)
stainless-app[bot] Feb 5, 2025
48d0c38
chore(internal): fix type traversing dictionary params (#2097)
stainless-app[bot] Feb 6, 2025
1d807f0
feat(pagination): avoid fetching when has_more: false (#2098)
stainless-app[bot] Feb 6, 2025
1063234
chore(internal): minor type handling changes (#2099)
stainless-app[bot] Feb 6, 2025
6e8aaf5
feat(api): add support for storing chat completions (#2117)
stainless-app[bot] Feb 13, 2025
a2736df
chore(internal): temporary commit (#2121)
stainless-app[bot] Feb 14, 2025
0672808
feat(client): allow passing `NotGiven` for body (#2135)
stainless-app[bot] Feb 20, 2025
9aa3679
chore(internal): fix devcontainers setup (#2137)
stainless-app[bot] Feb 21, 2025
98477ad
chore(internal): properly set __pydantic_private__ (#2144)
stainless-app[bot] Feb 25, 2025
808f52e
feat(api): add gpt-4.5-preview (#2149)
stainless-app[bot] Feb 27, 2025
760e4f4
docs: update URLs from stainlessapi.com to stainless.com (#2150)
stainless-app[bot] Feb 27, 2025
d137ed7
chore(docs): update client docstring (#2152)
stainless-app[bot] Feb 27, 2025
6296907
chore(internal): remove unused http client options forwarding (#2158)
stainless-app[bot] Mar 3, 2025
346561f
chore(internal): run example files in CI (#2160)
stainless-app[bot] Mar 4, 2025
1985b7d
fix(api): add missing file rank enum + more metadata (#2164)
stainless-app[bot] Mar 5, 2025
e680715
chore: move ChatModel type to shared (#2167)
stainless-app[bot] Mar 6, 2025
08f54f5
test: add DEFER_PYDANTIC_BUILD=false flag to tests (#2174)
stainless-app[bot] Mar 11, 2025
44b61bd
chore: export more types (#2176)
stainless-app[bot] Mar 11, 2025
7b6f118
feat(api): add /v1/responses and built-in tools (#2177)
stainless-app[bot] Mar 11, 2025
559af75
fix(responses): correct computer use enum value (#2180)
stainless-app[bot] Mar 11, 2025
32efcf3
fix(responses): correct reasoning output type (#2181)
stainless-app[bot] Mar 11, 2025
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
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.

100 changes: 86 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,92 @@
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.repository == 'stainless-sdks/openai-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
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
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
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 +95,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
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.99.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: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f5c45f4ae5c2075cbc603d6910bba3da31c23714c209fbd3fd82a94f634a126b.yml
openapi_spec_hash: 3eb8d86c06f0bb5e1190983e5acfc9ba
config_hash: 9a64321968e21ed72f5c0e02164ea00d
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