Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1dd29f9
docs(api): clarify suffix parameter max length in fine-tuning
stainless-app[bot] May 11, 2026
adc6bbf
docs(api): clarify max_seq_length parameter documentation in fine-tuning
stainless-app[bot] May 11, 2026
3fff4b6
docs(api): improve docstring clarity and grammar across resources
stainless-app[bot] May 11, 2026
c65be59
fix(types): restrict endpoint to specific values in batches create
stainless-app[bot] May 11, 2026
bda97f5
codegen metadata
stainless-app[bot] May 12, 2026
574e8ba
codegen metadata
stainless-app[bot] May 12, 2026
08c66e8
feat(api): Integrate fine_tuning.list_metrics from stainless
stainless-app[bot] May 12, 2026
a89bc6a
chore: temp deletion
stainless-app[bot] May 12, 2026
ad924d9
chore: temp undeletion
stainless-app[bot] May 12, 2026
67fbe61
ci: pin GitHub Actions to commit SHAs
stainless-app[bot] May 12, 2026
e2d6e64
feat(api): add params to list methods, update clusters/storage types
stainless-app[bot] May 14, 2026
cf4f87b
fix(types): change status to enum in cluster storage
stainless-app[bot] May 15, 2026
84855a3
feat(api): add h200-140gb GPU type option to jig resource
stainless-app[bot] May 15, 2026
733450c
fix(types): make duration_days and size_tib optional in clusters
stainless-app[bot] May 15, 2026
09b71bc
feat(api): add storage file/multipart operations, logs method, rename…
stainless-app[bot] May 15, 2026
4623a4b
docs(api): add field documentation to clusters and storage
stainless-app[bot] May 15, 2026
a70223c
feat(api): Add node remediation APIs to clusters sdks
stainless-app[bot] May 15, 2026
0090346
feat(api): manual updates
stainless-app[bot] May 15, 2026
72b7cb8
fix(api): remove trigger parameter from remediations list method
stainless-app[bot] May 15, 2026
d1782a2
feat(api): manual updates
stainless-app[bot] May 15, 2026
056ac27
codegen metadata
stainless-app[bot] May 15, 2026
fac1032
chore(tests): remove redundant File import
stainless-app[bot] May 18, 2026
88adf97
fix(types): remove error field, make requestId required in queue Queu…
stainless-app[bot] May 18, 2026
06d9a67
fix(typescript): upgrade tsc-multi so that it works with Node 26
stainless-app[bot] May 18, 2026
6c56e57
codegen metadata
stainless-app[bot] May 19, 2026
5975b85
feat(api): add trigger param, update mode to array in remediations list
stainless-app[bot] May 20, 2026
dcbecdf
feat(api): add instance_name field to Remediation model
stainless-app[bot] May 20, 2026
9b84610
feat(api): add disable_position_bias_correction, remove num_samples f…
stainless-app[bot] May 20, 2026
43a6806
feat(api): remove node_name field from ClusterNode
stainless-app[bot] May 20, 2026
5dfdd3f
docs(api): update gradient_accumulation_steps description in fine-tuning
stainless-app[bot] May 20, 2026
2cb5b36
release: 0.41.0
stainless-app[bot] May 20, 2026
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/togetherai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'

Expand All @@ -43,10 +43,10 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'

Expand All @@ -61,7 +61,7 @@ jobs:
github.repository == 'stainless-sdks/togetherai-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -80,10 +80,10 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/togetherai-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '20'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'togethercomputer/together-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check release environment
run: |
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 @@
{
".": "0.40.0"
".": "0.41.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: 75
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-e218fafc0c9b31bd98647d1e2de6decc55f8a7f9719b3b565f94939c2ebcf0df.yml
openapi_spec_hash: 026cc585ef61f52d4d6c4b60b969e323
config_hash: 6c214c91fad5ead4849be777fd9e8108
configured_endpoints: 82
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-ce108a2095d36552bb556506de04475674f512a13bc5aa099e9750993405be14.yml
openapi_spec_hash: 4763dd426dd805306bbb38a314158cd3
config_hash: b35d5968fb07cce1c1be735f874898b1
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# Changelog

## 0.41.0 (2026-05-20)

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

### Features

* **api:** add disable_position_bias_correction, remove num_samples from evals ([9b84610](https://github.com/togethercomputer/together-typescript/commit/9b846104ae9cb157c424b0cca7cf490e38bf4a5d))
* **api:** add h200-140gb GPU type option to jig resource ([84855a3](https://github.com/togethercomputer/together-typescript/commit/84855a355af582d28477a3771b96d966e2ac427d))
* **api:** add instance_name field to Remediation model ([dcbecdf](https://github.com/togethercomputer/together-typescript/commit/dcbecdf7dee2080d9df6b1bc5dfba1635835b69e))
* **api:** Add node remediation APIs to clusters sdks ([a70223c](https://github.com/togethercomputer/together-typescript/commit/a70223c5f31720ab6aef7a9e0d0c9ef2229ebedb))
* **api:** add params to list methods, update clusters/storage types ([e2d6e64](https://github.com/togethercomputer/together-typescript/commit/e2d6e640ed1c5201e4f1b679dae8da9d1ec99619))
* **api:** add storage file/multipart operations, logs method, rename response types ([09b71bc](https://github.com/togethercomputer/together-typescript/commit/09b71bc93c96f1e83d525c4f5bf222169af62044))
* **api:** add trigger param, update mode to array in remediations list ([5975b85](https://github.com/togethercomputer/together-typescript/commit/5975b8530ab0719fcf896c491d8c1f3efc883a82))
* **api:** Integrate fine_tuning.list_metrics from stainless ([08c66e8](https://github.com/togethercomputer/together-typescript/commit/08c66e8043be75831ffa0dbbffd1c174563204f6))
* **api:** manual updates ([d1782a2](https://github.com/togethercomputer/together-typescript/commit/d1782a2791b23ca07f1b1e5db8ae5de4f8c8f294))
* **api:** manual updates ([0090346](https://github.com/togethercomputer/together-typescript/commit/009034659e0e986fb5355df4f67336efd586b3d7))
* **api:** remove node_name field from ClusterNode ([43a6806](https://github.com/togethercomputer/together-typescript/commit/43a6806fc6eb76c952bcc3b225e0c54f33674f54))


### Bug Fixes

* **api:** remove trigger parameter from remediations list method ([72b7cb8](https://github.com/togethercomputer/together-typescript/commit/72b7cb899ef411e8ec19e2a8d38852b057184f4d))
* **types:** change status to enum in cluster storage ([cf4f87b](https://github.com/togethercomputer/together-typescript/commit/cf4f87b4bdef72daf7228159cccefccbf3bfe4e8))
* **typescript:** upgrade tsc-multi so that it works with Node 26 ([06d9a67](https://github.com/togethercomputer/together-typescript/commit/06d9a67b24273d69622381d7ea9b11660a4c350d))
* **types:** make duration_days and size_tib optional in clusters ([733450c](https://github.com/togethercomputer/together-typescript/commit/733450c79034609b749ce7a8a9255dc63dd031c1))
* **types:** remove error field, make requestId required in queue QueueSubmitResponse ([88adf97](https://github.com/togethercomputer/together-typescript/commit/88adf97945ffb851fb7248c586dc40e46f9c7ff1))
* **types:** restrict endpoint to specific values in batches create ([c65be59](https://github.com/togethercomputer/together-typescript/commit/c65be590b14e2da807110160e6d87f07b7c5ff55))


### Chores

* temp deletion ([a89bc6a](https://github.com/togethercomputer/together-typescript/commit/a89bc6a4ad3973bdd5c69f72d9b2c0e54fcb9c0d))
* temp undeletion ([ad924d9](https://github.com/togethercomputer/together-typescript/commit/ad924d976a9d1e79119db8aef2ae7667033e6ea6))
* **tests:** remove redundant File import ([fac1032](https://github.com/togethercomputer/together-typescript/commit/fac1032d9ae4720162e16df09dbed9865b8b4494))


### Documentation

* **api:** add field documentation to clusters and storage ([4623a4b](https://github.com/togethercomputer/together-typescript/commit/4623a4be3ce06321b63c3240623ffe7d0f184373))
* **api:** clarify max_seq_length parameter documentation in fine-tuning ([adc6bbf](https://github.com/togethercomputer/together-typescript/commit/adc6bbf87b396fe14898c92ae4ddad941b78ad37))
* **api:** clarify suffix parameter max length in fine-tuning ([1dd29f9](https://github.com/togethercomputer/together-typescript/commit/1dd29f9f54e659b3f39b9f8b0e20f53eb6623216))
* **api:** improve docstring clarity and grammar across resources ([3fff4b6](https://github.com/togethercomputer/together-typescript/commit/3fff4b65ebf0a6e409a1325f4b0c39ccb453526a))
* **api:** update gradient_accumulation_steps description in fine-tuning ([5dfdd3f](https://github.com/togethercomputer/together-typescript/commit/5dfdd3fec16bbdeabbcf774d1e2866a7f7fd7fd1))

## 0.40.0 (2026-05-11)

Full Changelog: [v0.39.0...v0.40.0](https://github.com/togethercomputer/together-typescript/compare/v0.39.0...v0.40.0)
Expand Down
27 changes: 27 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,29 @@ Readable.fromWeb(res.body).pipe(process.stdout);

Additionally, the `headers` property on `APIError` objects is now an instance of the Web [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) class. It was previously defined as `Record<string, string | null | undefined>`.

### Named path parameters

Methods that take multiple path parameters typically now use named instead of positional arguments for better clarity and to prevent a footgun where it was easy to accidentally pass arguments in the incorrect order.

For example, for a method that would call an endpoint at `/v1/parents/{parent_id}/children/{child_id}`, only the _last_ path parameter is positional and the rest must be passed as named arguments.

```ts
// Before
client.parents.children.retrieve('p_123', 'c_456');

// After
client.parents.children.retrieve('c_456', { parent_id: 'p_123' });
```

This affects the following methods:

- `client.beta.clusters.remediations.create()`
- `client.beta.clusters.remediations.retrieve()`
- `client.beta.clusters.remediations.list()`
- `client.beta.clusters.remediations.approve()`
- `client.beta.clusters.remediations.cancel()`
- `client.beta.clusters.remediations.reject()`

### URI encoded path parameters

Path params are now properly encoded by default. If you were manually encoding path parameters before giving them to the SDK, you must now stop doing that and pass the
Expand Down Expand Up @@ -68,7 +91,11 @@ client.example.list(undefined, { headers: { ... } });
This affects the following methods:

- `client.beta.jig.retrieveLogs()`
- `client.beta.jig.volumes.retrieve()`
- `client.beta.clusters.list()`
- `client.beta.clusters.storage.list()`
- `client.fineTuning.delete()`
- `client.fineTuning.listMetrics()`
- `client.models.list()`
- `client.endpoints.list()`
- `client.endpoints.listHardware()`
Expand Down
24 changes: 21 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Types:
Methods:

- <code title="post /deployments/storage/volumes">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">create</a>({ ...params }) -> Volume</code>
- <code title="get /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">retrieve</a>(id) -> Volume</code>
- <code title="get /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">retrieve</a>(id, { ...params }) -> Volume</code>
- <code title="patch /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">update</a>(id, { ...params }) -> Volume</code>
- <code title="get /deployments/storage/volumes">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">list</a>() -> VolumeListResponse</code>
- <code title="delete /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/resources/beta/jig/volumes.ts">delete</a>(id) -> unknown</code>
Expand Down Expand Up @@ -80,10 +80,26 @@ Methods:
- <code title="post /compute/clusters">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">create</a>({ ...params }) -> Cluster</code>
- <code title="get /compute/clusters/{cluster_id}">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">retrieve</a>(clusterID) -> Cluster</code>
- <code title="put /compute/clusters/{cluster_id}">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">update</a>(clusterID, { ...params }) -> Cluster</code>
- <code title="get /compute/clusters">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">list</a>() -> ClusterListResponse</code>
- <code title="get /compute/clusters">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">list</a>({ ...params }) -> ClusterListResponse</code>
- <code title="delete /compute/clusters/{cluster_id}">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">delete</a>(clusterID) -> ClusterDeleteResponse</code>
- <code title="get /compute/regions">client.beta.clusters.<a href="./src/resources/beta/clusters/clusters.ts">listRegions</a>() -> ClusterListRegionsResponse</code>

### Remediations

Types:

- <code><a href="./src/resources/beta/clusters/remediations.ts">Remediation</a></code>
- <code><a href="./src/resources/beta/clusters/remediations.ts">RemediationListResponse</a></code>

Methods:

- <code title="post /compute/clusters/{cluster_id}/instances/{instance_id}/remediations">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">create</a>(instanceID, { ...params }) -> Remediation</code>
- <code title="get /compute/clusters/{cluster_id}/instances/{instance_id}/remediations/{remediation_id}">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">retrieve</a>(remediationID, { ...params }) -> Remediation</code>
- <code title="get /compute/clusters/{cluster_id}/instances/{instance_id}/remediations">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">list</a>(instanceID, { ...params }) -> RemediationListResponse</code>
- <code title="post /compute/clusters/{cluster_id}/instances/{instance_id}/remediations/{remediation_id}/approve">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">approve</a>(remediationID, { ...params }) -> Remediation</code>
- <code title="post /compute/clusters/{cluster_id}/instances/{instance_id}/remediations/{remediation_id}/cancel">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">cancel</a>(remediationID, { ...params }) -> Remediation</code>
- <code title="post /compute/clusters/{cluster_id}/instances/{instance_id}/remediations/{remediation_id}/reject">client.beta.clusters.remediations.<a href="./src/resources/beta/clusters/remediations.ts">reject</a>(remediationID, { ...params }) -> Remediation</code>

### Storage

Types:
Expand All @@ -97,7 +113,7 @@ Methods:
- <code title="post /compute/clusters/storage/volumes">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">create</a>({ ...params }) -> ClusterStorage</code>
- <code title="get /compute/clusters/storage/volumes/{volume_id}">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">retrieve</a>(volumeID) -> ClusterStorage</code>
- <code title="put /compute/clusters/storage/volumes">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">update</a>({ ...params }) -> ClusterStorage</code>
- <code title="get /compute/clusters/storage/volumes">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">list</a>() -> StorageListResponse</code>
- <code title="get /compute/clusters/storage/volumes">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">list</a>({ ...params }) -> StorageListResponse</code>
- <code title="delete /compute/clusters/storage/volumes/{volume_id}">client.beta.clusters.storage.<a href="./src/resources/beta/clusters/storage.ts">delete</a>(volumeID) -> StorageDeleteResponse</code>

# Chat
Expand Down Expand Up @@ -182,6 +198,7 @@ Types:
- <code><a href="./src/resources/fine-tuning.ts">FineTuningEstimatePriceResponse</a></code>
- <code><a href="./src/resources/fine-tuning.ts">FineTuningListCheckpointsResponse</a></code>
- <code><a href="./src/resources/fine-tuning.ts">FineTuningListEventsResponse</a></code>
- <code><a href="./src/resources/fine-tuning.ts">FineTuningListMetricsResponse</a></code>

Methods:

Expand All @@ -194,6 +211,7 @@ Methods:
- <code title="post /fine-tunes/estimate-price">client.fineTuning.<a href="./src/resources/fine-tuning.ts">estimatePrice</a>({ ...params }) -> FineTuningEstimatePriceResponse</code>
- <code title="get /fine-tunes/{id}/checkpoints">client.fineTuning.<a href="./src/resources/fine-tuning.ts">listCheckpoints</a>(id) -> FineTuningListCheckpointsResponse</code>
- <code title="get /fine-tunes/{id}/events">client.fineTuning.<a href="./src/resources/fine-tuning.ts">listEvents</a>(id) -> FineTuningListEventsResponse</code>
- <code title="get /fine-tunes/{id}/metrics">client.fineTuning.<a href="./src/resources/fine-tuning.ts">listMetrics</a>(id, { ...params }) -> FineTuningListMetricsResponse</code>

# CodeInterpreter

Expand Down
Loading
Loading