Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
79d0c84
feat(api): Add fine_tune.delete API
stainless-app[bot] Nov 10, 2025
8d0ff80
codegen metadata
stainless-app[bot] Nov 10, 2025
9f78929
feat(api): manual updates
stainless-app[bot] Nov 10, 2025
c219bfd
feat(api): api update
stainless-app[bot] Nov 10, 2025
04797be
feat(api): api update
stainless-app[bot] Nov 11, 2025
8ec7bf0
feat(api): api update
stainless-app[bot] Nov 11, 2025
c91b8c0
feat(api): Update Eval APIs
stainless-app[bot] Nov 11, 2025
e594a76
feat(api): api update
stainless-app[bot] Nov 12, 2025
b3c88fd
codegen metadata
stainless-app[bot] Nov 12, 2025
606fea8
feat(api): Add endpoints.list_avzones
stainless-app[bot] Nov 12, 2025
4be10bc
feat(api): api update
stainless-app[bot] Nov 12, 2025
77b1211
style(api): Change fine tuning namespace to `fine_tuning`
stainless-app[bot] Nov 14, 2025
b2c168a
style(api): Change fine tuning method `retrieve_checkpoints` to `list…
stainless-app[bot] Nov 14, 2025
5062932
codegen metadata
stainless-app[bot] Nov 14, 2025
890595e
feat(api): Add audio.voices.list sdk
stainless-app[bot] Nov 14, 2025
3df5b97
codegen metadata
stainless-app[bot] Nov 14, 2025
b1133f8
feat(api): Add batches.cancel API
stainless-app[bot] Nov 14, 2025
b477053
chore: Fix fine tuning examples
blainekasten Nov 17, 2025
3fe35c2
skip broken tests
blainekasten Nov 17, 2025
5cba49f
feat(api): files.upload supported with custom file checks
blainekasten Nov 17, 2025
3079018
Change upload API spec to use the common APIPromise response shape
blainekasten Nov 17, 2025
8774e72
fix examples
blainekasten Nov 17, 2025
9a19707
Merge pull request #200 from togethercomputer/blaine/eng-48225-update…
blainekasten Nov 17, 2025
94c54cb
chore(api): Remove auto-generated files upload API to support custom …
stainless-app[bot] Nov 19, 2025
da3e212
feat(api): api update
stainless-app[bot] Nov 17, 2025
feac80c
codegen metadata
stainless-app[bot] Nov 19, 2025
250569f
feat(api): Change image creation signature to `images.generate`
stainless-app[bot] Nov 20, 2025
34f7fe5
feat(api): Change fine tuning download method to `.create`
stainless-app[bot] Nov 20, 2025
1022fa6
feat(api): api update
stainless-app[bot] Nov 20, 2025
70a0ddc
feat(api): Change rerank method signature
stainless-app[bot] Nov 20, 2025
68895c0
chore(api): Ensure file.upload API remains in codebase after stainles…
blainekasten Nov 20, 2025
8f34c93
chore: Fix API example
blainekasten Nov 20, 2025
fd2189a
feat(api): Change TTS call signature
stainless-app[bot] Nov 21, 2025
5377f8d
codegen metadata
stainless-app[bot] Nov 21, 2025
690091b
codegen metadata
stainless-app[bot] Nov 24, 2025
eb775fd
codegen metadata
stainless-app[bot] Nov 24, 2025
e4c9edf
codegen metadata
stainless-app[bot] Nov 24, 2025
46dcc83
chore(api): Remove API that is not intended to be public.
stainless-app[bot] Nov 25, 2025
3b1eddb
chore(api): Cleanup some exported types
stainless-app[bot] Nov 25, 2025
963673f
chore: fix lint and type checks (#201)
blainekasten Nov 25, 2025
fed5c48
feat(api): api update
stainless-app[bot] Nov 26, 2025
2ce325f
feat(api): Fix internal references for VideoJob spec
stainless-app[bot] Nov 26, 2025
2415233
codegen metadata
stainless-app[bot] Nov 26, 2025
1e364ba
codegen metadata
stainless-app[bot] Nov 26, 2025
10df0df
chore(client): fix logger property type
stainless-app[bot] Dec 1, 2025
35465cf
release: 0.31.0
stainless-app[bot] Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.30.0"
".": "0.31.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-eacfa676c4ac9c051f61d4d25c1074315959b2e3d418bca529e6de2a9f6636e7.yml
openapi_spec_hash: 1d56caf3dd011e888fb911d34bd34aef
config_hash: 3c3a676f96a972da95e0e85618e64c76
configured_endpoints: 44
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-bfa7422593036f383fcc5209e8a52705f582be9480f90747f8962a46ed5b1152.yml
openapi_spec_hash: 400da476d5f86a3493bf6dacfe6826f0
config_hash: 87a5832ab2ecefe567d22108531232f5
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# Changelog

## 0.31.0 (2025-12-01)

Full Changelog: [v0.30.0...v0.31.0](https://github.com/togethercomputer/together-typescript/compare/v0.30.0...v0.31.0)

### ⚠ BREAKING CHANGES

* **api:** Change call signature for `audio.create` to `audio.speech.create` to match spec with python library and add space for future APIs
* **api:** Update method signature for reranking to `rerank.create()`
* **api:** Change Fine Tuning method name from `download()` to `content()` to align with other namespaces
* **api:** For the TS SDK the `images.create` is now `images.generate`
* **api:** Access to the api for listing checkpoints has changed its name to `list_checkpoints`
* **api:** Access to fine tuning APIs namespace has changed from `fine_tune` to `fine_tuning`

### Features

* **api:** Add audio.voices.list sdk ([890595e](https://github.com/togethercomputer/together-typescript/commit/890595e53cdfd3e28a60cde87426f48ddb81a261))
* **api:** Add batches.cancel API ([b1133f8](https://github.com/togethercomputer/together-typescript/commit/b1133f805588621237922f13cfd2b9e0a4401a0e))
* **api:** Add endpoints.list_avzones ([606fea8](https://github.com/togethercomputer/together-typescript/commit/606fea8873f5d511b619cfce63c3762ffc61db89))
* **api:** Add fine_tune.delete API ([79d0c84](https://github.com/togethercomputer/together-typescript/commit/79d0c84157bddcfe54de5d0ce1c12866b4c1243d))
* **api:** api update ([fed5c48](https://github.com/togethercomputer/together-typescript/commit/fed5c48d8966d5a27a14c9864425787835adedd9))
* **api:** api update ([1022fa6](https://github.com/togethercomputer/together-typescript/commit/1022fa67aa9b090292cecf1876eed0091e7497e5))
* **api:** api update ([da3e212](https://github.com/togethercomputer/together-typescript/commit/da3e212281b055ef30d492e350664e6fe61f0153))
* **api:** api update ([4be10bc](https://github.com/togethercomputer/together-typescript/commit/4be10bcc5ba0f6af6b42eda9edbb8d6bb921fb02))
* **api:** api update ([e594a76](https://github.com/togethercomputer/together-typescript/commit/e594a76294cf6c591b49f84f8769c045423b9d2a))
* **api:** api update ([8ec7bf0](https://github.com/togethercomputer/together-typescript/commit/8ec7bf0af42f2b9c4ff21f03a8978ed947bdec74))
* **api:** api update ([04797be](https://github.com/togethercomputer/together-typescript/commit/04797be698349057cec045107b183e19e99c0ef3))
* **api:** api update ([c219bfd](https://github.com/togethercomputer/together-typescript/commit/c219bfd42f433da46c8689929dd99eef55c9dda4))
* **api:** Change fine tuning download method to `.create` ([34f7fe5](https://github.com/togethercomputer/together-typescript/commit/34f7fe5c5a09f86163f895495749f4a6e9123581))
* **api:** Change image creation signature to `images.generate` ([250569f](https://github.com/togethercomputer/together-typescript/commit/250569f9e066e49c0bc70b36bcbb9f1f4e9afd1e))
* **api:** Change rerank method signature ([70a0ddc](https://github.com/togethercomputer/together-typescript/commit/70a0ddc63a2378a65a5064980043cc154aebe216))
* **api:** Change TTS call signature ([fd2189a](https://github.com/togethercomputer/together-typescript/commit/fd2189ae4f99a3e5c9c7873575858550a57d02cc))
* **api:** files.upload supported with custom file checks ([5cba49f](https://github.com/togethercomputer/together-typescript/commit/5cba49fcd138e7f0acb9c039f03a35eb82df9e30))
* **api:** Fix internal references for VideoJob spec ([2ce325f](https://github.com/togethercomputer/together-typescript/commit/2ce325f197109d8e8643576ebba95ed63836858c))
* **api:** manual updates ([9f78929](https://github.com/togethercomputer/together-typescript/commit/9f78929f9162d4c84a0f0643d4070d96dac32e76))
* **api:** Update Eval APIs ([c91b8c0](https://github.com/togethercomputer/together-typescript/commit/c91b8c082eb8e84841820d23bf7dbf1450525b67))


### Chores

* **api:** Cleanup some exported types ([3b1eddb](https://github.com/togethercomputer/together-typescript/commit/3b1eddba23b115bc29a771dd08e72e3789a7f3bc))
* **api:** Ensure file.upload API remains in codebase after stainless sync ([68895c0](https://github.com/togethercomputer/together-typescript/commit/68895c0a387fcc1ed68b36e927d6696004715b92))
* **api:** Remove API that is not intended to be public. ([46dcc83](https://github.com/togethercomputer/together-typescript/commit/46dcc8313cd4c05489c9751d3856ef5afc76a01c))
* **api:** Remove auto-generated files upload API to support custom coded version ([94c54cb](https://github.com/togethercomputer/together-typescript/commit/94c54cbd65bdee4bd671c8cbe97384b51c3da674))
* **client:** fix logger property type ([10df0df](https://github.com/togethercomputer/together-typescript/commit/10df0dffb4279a11317cdb27f81dc8ee9834a27a))
* Fix API example ([8f34c93](https://github.com/togethercomputer/together-typescript/commit/8f34c934bd573b99dc1521821f9d57c0cbf9dea8))
* Fix fine tuning examples ([b477053](https://github.com/togethercomputer/together-typescript/commit/b477053e00e72257bda93c75d1dec54326e84628))
* fix lint and type checks ([#201](https://github.com/togethercomputer/together-typescript/issues/201)) ([963673f](https://github.com/togethercomputer/together-typescript/commit/963673f91ea6f4c9bf85258556b5ac73007a9e7e))


### Styles

* **api:** Change fine tuning method `retrieve_checkpoints` to `list_checkpoints` ([b2c168a](https://github.com/togethercomputer/together-typescript/commit/b2c168afce5f78c915b06559d2c226b5220160c1))
* **api:** Change fine tuning namespace to `fine_tuning` ([77b1211](https://github.com/togethercomputer/together-typescript/commit/77b1211ece96ad340628409c0ae08bac9fab2e0a))

## 0.30.0 (2025-11-04)

Full Changelog: [v0.29.0...v0.30.0](https://github.com/togethercomputer/together-typescript/compare/v0.29.0...v0.30.0)
Expand Down
1 change: 1 addition & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ client.example.list(undefined, { headers: { ... } });

This affects the following methods:

- `client.fineTuning.delete()`
- `client.endpoints.list()`
- `client.hardware.list()`
- `client.evals.list()`
Expand Down
49 changes: 0 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,55 +77,6 @@ const chatCompletion: Together.Chat.ChatCompletion = await client.chat.completio

Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.

## File uploads

Request parameters that correspond to file uploads can be passed in many different forms:

- `File` (or an object with the same structure)
- a `fetch` `Response` (or an object with the same structure)
- an `fs.ReadStream`
- the return value of our `toFile` helper

```ts
import fs from 'fs';
import Together, { toFile } from 'together-ai';

const client = new Together();

// If you have access to Node `fs` we recommend using `fs.createReadStream()`:
await client.files.upload({
file: fs.createReadStream('/path/to/file'),
file_name: 'dataset.csv',
purpose: 'fine-tune',
});

// Or if you have the web `File` API you can pass a `File` instance:
await client.files.upload({
file: new File(['my bytes'], 'file'),
file_name: 'dataset.csv',
purpose: 'fine-tune',
});

// You can also pass a `fetch` `Response`:
await client.files.upload({
file: await fetch('https://somesite/file'),
file_name: 'dataset.csv',
purpose: 'fine-tune',
});

// Finally, if none of the above are convenient, you can use our `toFile` helper:
await client.files.upload({
file: await toFile(Buffer.from('my bytes'), 'file'),
file_name: 'dataset.csv',
purpose: 'fine-tune',
});
await client.files.upload({
file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
file_name: 'dataset.csv',
purpose: 'fine-tune',
});
```

## Handling errors

When the library is unable to connect to the API,
Expand Down
Loading