v0.1.0-alpha.64
Pre-release
Pre-release
0.1.0-alpha.64 (2025-03-15)
Full Changelog: v0.1.0-alpha.63...v0.1.0-alpha.64
⚠ BREAKING CHANGES
- client: improve naming of some variants (#89)
Features
- add azure, examples, and message constructors (fb2df0f)
- add SKIP_BREW env var to ./scripts/bootstrap (#255) (151c5e7)
- add support for error property in stream (#29) (0c7d6e5)
- api: add chatgpt-4o-latest model (#24) (110d1f0)
- api: add file search result details to run steps (#32) (c1862bd)
- api: add gpt-4.5-preview (#242) (961bf16)
- api: add gpt-4o-2024-11-20 model (#131) (8fe1011)
- api: add gpt-4o-audio-preview model for chat completions (#88) (f4a76d0)
- api: add new, expressive voices for Realtime and Audio in Chat Completions (#101) (f946acc)
- api: add o1 models (#49) (698a0c9)
- api: add o3-mini (#195) (1dc8887)
- api: add omni-moderation model (#63) (7402f24)
- api: add support for predicted outputs (#110) (73c798a)
- api: add support for storing chat completions (#228) (3da23d8)
- api: new o1 and GPT-4o models + preference fine-tuning (#142) (a9e2f35)
- api: support storing chat completions, enabling evals and model distillation in the dashboard (#72) (b0eae50)
- api: update enum values, comments, and examples (#181) (29e5479)
- api: updates (#138) (525573e)
- api: updates (#259) (aa5cb47)
- api: updates (#5) (f92a25c)
- assistants: add polling helpers and examples (#84) (eaa9194)
- client: accept RFC6838 JSON content types (#256) (9a8f472)
- client: allow custom baseurls without trailing slash (#254) (32b7eb4)
- client: improve default client options support (0c621c0)
- client: improve default client options support (#266) (e68b1cd)
- client: improve naming of some variants (#89) (6bb0f75)
- client: send
X-Stainless-Timeoutheader (#204) (72405f0) - client: send retry count header (#60) (01ed6ab)
- examples/structure-outputs: created an example for using structured outputs (d4303e8)
- extract out
ImageModel,AudioModel,SpeechModel(#3) (4b90869) - make enums not nominal (#4) (a559359)
- move pagination package from internal to packages (#81) (c7476f7)
- pagination: avoid fetching when has_more: false (#218) (978707d)
- publish (c329601)
- simplify content union (#18) (b228103)
- stream-accumulators: added streaming accumulator helpers and example (ecfdb64)
- support assistants stream (7c00c63)
- support deprecated markers (#178) (2c21e34)
- vector store: improve chunking strategy type names (#40) (5d0740f)
Bug Fixes
- api/types: correct audio duration & role types (#209) (f480273)
- api: add missing file rank enum + more metadata (#248) (a47089e)
- api: add missing reasoning effort + model enums (#215) (5b53a1d)
- api: escape key values when encoding maps (#116) (a29c08e)
- audio: correct response_format translations type (#62) (c46777b)
- beta: pass beta header by default (#75) (e0a5caa)
- client: don't truncate manually specified filenames (#230) (86febfc)
- client: no panic on missing BaseURL (#121) (9e252ee)
- correct required fields for flattened unions (#120) (9d6e6f2)
- deserialization of struct unions that implement json.Unmarshaler (#11) (7c0847a)
- do not call path.Base on ContentType (#225) (e1c1a55)
- examples/fine-tuning: used an old constant name (#34) (fb78f1d)
- example: use correct model (#86) (0f3578d)
- fix apijson.Port for embedded structs (#174) (13ecf6c)
- fix apijson.Port for embedded structs (#177) (1820b25)
- fix early cancel when RequestTimeout is provided for streaming requests (#221) (08320be)
- fix unicode encoding for json (#193) (4a905a7)
- flush stream response when done event is sent (#172) (cf1a6a5)
- requestconfig: copy over more fields when cloning (#44) (3c7aa48)
- responses: correct computer use enum value (#261) (73d820b)
- responses: correct reasoning output type (#262) (a636da3)
- stream: ensure .Close() doesn't panic (#194) (71821a8)
- stream: ensure .Close() doesn't panic (#201) (a75c812)
- streaming: correctly accumulate tool calls and roles (#55) (321ff9e)
- types: correct metadata type + other fixes (1dc8887)
- update stream error handling (#213) (b2a763d)
Chores
- add back custom code that was reverted (4b46d02)
- api: bump spec version (#154) (4fc775f)
- api: delete deprecated method (#208) (dcb01cc)
- bump Go to v1.21 (#12) (e4c3228)
- bump license year (#151) (5e724f9)
- bump openapi url (#136) (b9bf99d)
- ci: bump prism mock server version (#10) (00f9455)
- ci: codeowners file (#9) (be41ac2)
- docs: add docstring explaining streaming pattern (#205) (bfabf9d)
- docs: fix maxium typo (#69) (29dfb56)
- docs: remove some duplicative api.md entries (#65) (532c9a0)
- examples: minor formatting changes (#14) (85aaaa5)
- fix GetNextPage docstring (#78) (a736116)
- internal: fix devcontainers setup (#236) (25b0137)
- internal: remove CI condition (#271) (c61ef3a)
- internal: remove extra empty newlines (#268) (df22608)
- internal: rename
streaming.go(#176) (fb192c6) - internal: spec update (#130) (7fd444a)
- internal: spec update (#145) (b8ba547)
- internal: spec update (#146) (d4bcfc0)
- internal: spec update (#158) (fd7fe8c)
- internal: streaming refactors (#165) (2fbb02c)
- internal: update spec link (#53) (4915187)
- internal: update spec version (#95) (ba37fcc)
- internal: updates (#2) (103d454)
- internal: updates (#6) (316e623)
- move ChatModel type to shared (#250) (304ec6b)
- refactor client tests (#187) (b956e3a)
- tests: limit array example length (#128) (45fa490)
- types: define FilePurpose enum (#22) (1daff0f)
- types: improve type name for embedding models (#57) (57736f9)
- types: rename vector store chunking strategy (#169) (6076a58)
Documentation
- add missing docs for some enums (#114) (3d9fbd8)
- document raw responses (#197) (9d06d7a)
- examples: fix typo (#207) (bf8afc3)
- improve and reference contributing documentation (#73) (cd4dcc1)
- readme: add an alpha warning (#27) (42ecbf8)
- readme: added some examples to readme (#39) (a714dde)
- readme: fix example snippet (#118) (2af88cb)
- readme: fix misplaced period (#156) (42bbc45)
- readme: fix typo (#148) (07d3e40)
- readme: smaller readme snippets with links to examples (#46) (082e6ae)
- update CONTRIBUTING.md (#51) (871b758)
- update URLs from stainlessapi.com to stainless.com (#243) (fcb72c5)