25 Commits

Author SHA1 Message Date
Robert Craigie
7319e6e3f1 chore(internal): revert temporary commit (#2121) 2025-02-17 15:54:36 +00:00
stainless-app[bot]
a942394481 chore(internal): temporary commit (#2121) 2025-02-17 12:49:40 +00:00
stainless-app[bot]
27d0e67b1d chore(internal): minor formatting changes (#2050) 2025-01-24 19:05:00 +00:00
Robert Craigie
ccf5753ae0 chore(ci): fix publish workflow 2025-01-03 16:30:44 +00:00
stainless-app[bot]
4373893397 chore(ci): codeowners file (#1627) 2024-08-10 06:40:45 +00:00
Robert Craigie
bf1ca86cf3 feat(api): add structured outputs support
This commit adds support for JSON schema response format & adds a
separate `.beta.chat.completions.parse()` method to automatically
deserialise the response content into a Pydantic model.

For more details on structured outputs, see this guide
https://platform.openai.com/docs/guides/structured-outputs
2024-08-06 10:14:23 -07:00
stainless-app[bot]
94fc49d8b1 chore(ci): update rye to v0.35.0 (#1523) 2024-07-04 00:22:58 +00:00
Stainless Bot
001965be0a chore(ci): update rye install location (#1440) 2024-05-24 16:05:05 +00:00
Stainless Bot
534582307a chore(ci): update rye install location (#1436)
the site is currently down due to DNS issues
2024-05-23 11:04:50 +00:00
Stainless Bot
526a05ebd8 chore(internal): add slightly better logging to scripts (#1422) 2024-05-14 12:02:31 -04:00
Stainless Bot
d2738d4259 feat(api): delete messages (#1388) 2024-05-01 00:13:36 -04:00
Stainless Bot
290e7ada3a release: 1.23.5 (#1369)
* chore(internal): use actions/checkout@v4 for codeflow (#1368)

* release: 1.23.5
2024-04-24 17:25:51 -07:00
Stainless Bot
b36b8d869a chore(internal): formatting (#1311) 2024-04-12 14:36:54 -04:00
Stainless Bot
f0b18239fe chore(types): extract run status to a named type (#1178) 2024-02-28 15:20:15 -08:00
Stainless Bot
63222f61d8 fix(ci): revert "move github release logic to github app" (#1170) 2024-02-20 11:26:34 -08:00
Stainless Bot
998e1887e1 chore(internal): bump rye to v0.24.0 (#1168) 2024-02-20 17:23:09 +00:00
Stainless Bot
98ac9df81b chore(ci): move github release logic to github app (#1155) 2024-02-19 21:51:17 -05:00
Stainless Bot
eafe8f938b chore(ci): run release workflow once per day (#978) 2023-12-16 20:56:57 -05:00
Stainless Bot
3d63cf2571 ci: remove PR title linter (#934) 2023-12-09 02:20:27 +00:00
Stainless Bot
f61de9900e ci: ensure PR titles use conventional commits (#929) 2023-12-09 02:20:27 +00:00
David Schnurr
ba42447050 issue templates (#698)
* issue templates

* Fix
2023-11-08 10:31:05 -08:00
Stainless Bot
e9c26d1e25 ci: setup automatic releases (#693) 2023-11-08 18:04:00 +00:00
David Schnurr
e0aafc6c1a codeowners (#696) 2023-11-06 15:58:23 -08:00
David Schnurr
08b8179a6b V1 (#677)
* cleanup

* v1.0.0-beta.1

* docs: add basic manual azure example

* docs: use chat completions instead of completions for demo example

* test: rename `API_BASE_URL` to `TEST_API_BASE_URL`

* feat(client): handle retry-after header with a date format

* feat(api): remove `content_filter` stop_reason and update documentation

* refactor(cli): rename internal types for improved auto complete

* feat(client): add forwards-compatible pydantic methods

* feat(api): move `n_epochs` under `hyperparameters`

* feat(client): add support for passing in a httpx client

* chore: update README

* feat(cli): use http/2 if h2 is available

* chore(docs): remove trailing spaces

* feat(client): add logging setup

* chore(internal): minor updates

* v1.0.0-beta.2

* docs: use chat completions instead of completions for demo example

* chore: add case insensitive get header function

* fix(client): correctly handle errors during streaming

* fix(streaming): add additional overload for ambiguous stream param

* chore(internal): enable lint rule

* chore(internal): cleanup some redundant code

* fix(client): accept io.IOBase instances in file params

* docs: improve error message for invalid file param type

* 1.0.0-beta.3

* chore(internal): migrate from Poetry to Rye

* feat(cli): add `tools fine_tunes.prepare_data`

* feat(client): support passing httpx.URL instances to base_url

* chore(internal): fix some latent type errors

* feat(api): add embeddings encoding_format

* feat: use numpy for faster embeddings decoding

* chore(internal): bump pyright

* chore(internal): bump deps

* feat(client): improve file upload types

* feat(client): adjust retry behavior to be exponential backoff

* ci: add lint workflow

* docs: improve to dictionary example

* ci(lint): run ruff too

* chore(internal): require explicit overrides

* feat(client): support accessing raw response objects

* test(qs): add an additional test case for array brackets

* feat(client): add dedicated Azure client

* feat(package): add classifiers

* docs(readme): add Azure guide

* 1.0.0-rc1

* docs: small cleanup

* feat(github): include a devcontainer setup

* chore: improve type names

* feat(client): allow binary returns

* feat(client): support passing BaseModels to request params at runtime

* fix(binaries): don't synchronously block in astream_to_file

* 1.0.0-rc2

* chore(internal): remove unused int/float conversion

* docs(readme): improve example snippets

* fix: prevent TypeError in Python 3.8 (ABC is not subscriptable)

* 1.0.0-rc3

* docs: update streaming example

* docs(readme): update opening

* v1.0.0

---------

Co-authored-by: Robert Craigie <robert@craigie.dev>
Co-authored-by: Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
Co-authored-by: Stainless Bot <dev@stainlessapi.com>
Co-authored-by: Alex Rattray <rattray.alex@gmail.com>
2023-11-06 08:19:00 -08:00
Logan Kilpatrick
341b85d884 Create issue templates (#214)
* Create config.yml

* Add

* Create feature_request.yml
2023-02-06 16:06:06 -06:00