15 Commits

Author SHA1 Message Date
stainless-app[bot]
48188cc8d5 release: 1.97.2 (#2494)
* codegen metadata

* fix(parsing): ignore empty metadata

* chore(internal): refactor stream event processing to be more future proof

* fixup!

* fixup!

* fixup!

* update comment

* chore(project): add settings file for vscode

* flip logic around

* release: 1.97.2

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: David Meadows <dmeadows@stainless.com>
2025-07-30 07:40:14 -04:00
Kevin Whinnery
8136a21637 feat: add audio helpers
* add audio helpers

* update ignore, lockfile, add execute

* fix examples, lint errors

* lint and export errors

* temp: ignore type errors
2025-03-20 11:35:53 -05:00
stainless-app[bot]
24347efc6d chore: gitignore test server logs (#1509) 2024-07-02 14:41:10 +00:00
Stainless Bot
d2738d4259 feat(api): delete messages (#1388) 2024-05-01 00:13:36 -04: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
Sorin Suciu
95fa7d07c2 Add azure deployments + an example/tutorial for using Azure endpoints. (#83)
* Add azure deployments + an example/tutorial for using Azure endpoints.

* Small change to the error response for the Azure API

* Adressed comeents

* Fix error message
2022-04-14 10:47:12 -07:00
Sorin Suciu
02e4008dda Add support for fine-tuning and files using the Azure API. (#80)
* Add support for fine-tunning and files using the Azure API.

* Small changes + version bumps

* Version bump after merge

* fix typo

* adressed comments

* Fixed 2 small issues that cause unit tests to fail.

* Adressed comments

* Version bump
2022-03-18 11:48:40 -07:00
kennyhsu5
718e7a427d Revert "Add support for fine-tunning and files using the Azure API. (#76)" (#79)
This reverts commit 2b264c39f8.
2022-03-11 14:12:43 -08:00
Sorin Suciu
2b264c39f8 Add support for fine-tunning and files using the Azure API. (#76)
* Add support for fine-tunning and files using the Azure API.

* Small changes + version bumps

* Version bump after merge

* fix typo

* adressed comments
2022-03-11 11:19:57 -08:00
Sorin Suciu
c93af95bf9 Add an option to use Azure endpoints for the /completions & /search operations. (#45)
* Add an option to use Azure endpoints for the /completions operation.

* Add the azure endpoints option for the /search operation + small fixes.

* errata

* Adressed CR comments
2022-01-21 16:46:27 -08:00
Lilian
25b681a187 Add embedding visualization in 3D notebook example (#108) (#63)
* Add get_embeddings()

* Add Visualize_in_3d notebook

* Add dbpedia_samples.jsonl

* black reformat openai/embeddings_utils.py

* resolve comments

* Remove .ipynb_checkpoints

* fix build
2022-01-13 13:57:38 -08:00
Madeleine Thompson
62f8d40ffc python client 0.11.0 beta release (#42)
- Add `.isort.cfg` and fix imports to match.
- Exit with status 1 instead of 0 on error in `openai`.
- Support `openai.api_key_path` variable to make it easy to have long-running processes with auto-updated keys.
- Drop support for unverified SSL connections.
- Substantially simplify HTTP client code. Now that we use `requests` for everything, we do not need distinct `HTTPClient` and `APIRequestor` abstractions, and we can use the `requests` implementation for multipart data, rather than our own.
- Drop vestigial code originally from the Stripe client. For example, there was a bunch of code related to an idempotency framework; OpenAI does not have an idempotency framework.
- Drop support for `APIResource.delete` as an instance method; it is just a class method now.
- Drop support for `APIResource.save`; use `APIResource.modify` instead. This substantially simplifies API resources, since they no longer need to track changed fields, and there's less risk of race conditions. And the only thing it could be used for is changing the number of replicas an engine had, which does not justify the complexity of the code.
- Drop the request-metrics code. It is unused.
2021-10-26 12:33:01 -07:00
Evan Morikawa
ff751ab690 Add /fine-tunes endpoint to the CLI (#5)
* Add /fine-tunes endpoint to the CLI

* address comments
2021-03-03 16:44:49 -08:00
Lilian Weng
6d5f597755 Add a very simple cli for higherlevel/classifications and higherlevel/answers 2020-12-04 15:15:57 -08:00
Greg Brockman
3c6d4cd643 Initial commit 2020-10-25 16:23:05 -07:00