Skip to content

Commit fb3cea1

Browse files
release: 2.0.0-alpha.1 (#175)
* chore(api): Remove auto-generated fine_tuning.create method from Python SDK * feat(api): Change image creation signature to `images.generate` BREAKING CHANGE: For the TS SDK the `images.create` is now `images.generate` * feat(api): Change fine tuning download method to `.create` BREAKING CHANGE: Change Fine Tuning method name from `download()` to `content()` to align with other namespaces * feat(api): api update * feat(api): Change rerank method signature BREAKING CHANGE: Update method signature for reranking to `rerank.create()` * feat(api): Port finetuning create code from together-python (#176) * chore: Fix examples * release: 2.0.0-alpha.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Blaine Kasten <[email protected]>
1 parent 6d8d4f9 commit fb3cea1

37 files changed

+1297
-1264
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.28"
2+
".": "2.0.0-alpha.1"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-57c68db188c5a4e69e16f99e7e4968f08f2dbf64e7e7d8f57f54f84669305189.yml
3-
openapi_spec_hash: 4e707463a416fd079a6beeff1d1beecb
4-
config_hash: 566058c6cddd3fb076ade46bc5e78274
1+
configured_endpoints: 44
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-b86f8e6c4674d1a7829ffa8ddff4bc93d21334d231e6a4d0fd734d411c07a4eb.yml
3+
openapi_spec_hash: 8af4975be6ae8f4655fa92fd26af9682
4+
config_hash: b337cdd3c62dbd3383529592a029b347

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 2.0.0-alpha.1 (2025-11-21)
4+
5+
Full Changelog: [v0.1.0-alpha.28...v2.0.0-alpha.1](https://github.com/togethercomputer/together-py/compare/v0.1.0-alpha.28...v2.0.0-alpha.1)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **api:** Update method signature for reranking to `rerank.create()`
10+
* **api:** Change Fine Tuning method name from `download()` to `content()` to align with other namespaces
11+
* **api:** For the TS SDK the `images.create` is now `images.generate`
12+
13+
### Features
14+
15+
* **api:** api update ([921fa59](https://github.com/togethercomputer/together-py/commit/921fa591a5a9c70f96d457a7b59749dfdfb6d4d6))
16+
* **api:** Change fine tuning download method to `.create` ([aa27907](https://github.com/togethercomputer/together-py/commit/aa279076c524956e204cb68b7424048a4f93a17d))
17+
* **api:** Change image creation signature to `images.generate` ([a6e3ad7](https://github.com/togethercomputer/together-py/commit/a6e3ad792393be978b123c87707afe779ef8df34))
18+
* **api:** Change rerank method signature ([338c415](https://github.com/togethercomputer/together-py/commit/338c415d1cee04520413717ee821f47a64316211))
19+
* **api:** Port finetuning create code from together-python ([#176](https://github.com/togethercomputer/together-py/issues/176)) ([ef3bd52](https://github.com/togethercomputer/together-py/commit/ef3bd5245ee254269653ff8e6db1651cfcf89c6d))
20+
21+
22+
### Chores
23+
24+
* **api:** Remove auto-generated fine_tuning.create method from Python SDK ([c533f29](https://github.com/togethercomputer/together-py/commit/c533f29e2b94d5d9ca97ed50c181dae0fc2dcd7b))
25+
* Fix examples ([35422cb](https://github.com/togethercomputer/together-py/commit/35422cb1eef730a04117d83c8df08442461f5ec1))
26+
327
## 0.1.0-alpha.28 (2025-11-18)
428

529
Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/togethercomputer/together-py/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)

api.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# Together
2-
3-
Types:
4-
5-
```python
6-
from together.types import RerankResponse
7-
```
8-
9-
Methods:
10-
11-
- <code title="post /rerank">client.<a href="./src/together/_client.py">rerank</a>(\*\*<a href="src/together/types/client_rerank_params.py">params</a>) -> <a href="./src/together/types/rerank_response.py">RerankResponse</a></code>
12-
131
# Chat
142

153
## Completions
@@ -93,7 +81,6 @@ from together.types import (
9381
LrScheduler,
9482
TrainingMethodDpo,
9583
TrainingMethodSft,
96-
FineTuningCreateResponse,
9784
FineTuningListResponse,
9885
FineTuningDeleteResponse,
9986
FineTuningCancelResponse,
@@ -104,12 +91,11 @@ from together.types import (
10491

10592
Methods:
10693

107-
- <code title="post /fine-tunes">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">create</a>(\*\*<a href="src/together/types/fine_tuning_create_params.py">params</a>) -> <a href="./src/together/types/fine_tuning_create_response.py">FineTuningCreateResponse</a></code>
10894
- <code title="get /fine-tunes/{id}">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">retrieve</a>(id) -> <a href="./src/together/types/fine_tune.py">FineTune</a></code>
10995
- <code title="get /fine-tunes">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">list</a>() -> <a href="./src/together/types/fine_tuning_list_response.py">FineTuningListResponse</a></code>
11096
- <code title="delete /fine-tunes/{id}">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">delete</a>(id, \*\*<a href="src/together/types/fine_tuning_delete_params.py">params</a>) -> <a href="./src/together/types/fine_tuning_delete_response.py">FineTuningDeleteResponse</a></code>
11197
- <code title="post /fine-tunes/{id}/cancel">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">cancel</a>(id) -> <a href="./src/together/types/fine_tuning_cancel_response.py">FineTuningCancelResponse</a></code>
112-
- <code title="get /finetune/download">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">download</a>(\*\*<a href="src/together/types/fine_tuning_download_params.py">params</a>) -> BinaryAPIResponse</code>
98+
- <code title="get /finetune/download">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">content</a>(\*\*<a href="src/together/types/fine_tuning_content_params.py">params</a>) -> BinaryAPIResponse</code>
11399
- <code title="get /fine-tunes/{id}/checkpoints">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">list_checkpoints</a>(id) -> <a href="./src/together/types/fine_tuning_list_checkpoints_response.py">FineTuningListCheckpointsResponse</a></code>
114100
- <code title="get /fine-tunes/{id}/events">client.fine_tuning.<a href="./src/together/resources/fine_tuning.py">list_events</a>(id) -> <a href="./src/together/types/fine_tuning_list_events_response.py">FineTuningListEventsResponse</a></code>
115101

@@ -147,7 +133,7 @@ from together.types import ImageDataB64, ImageDataURL, ImageFile
147133

148134
Methods:
149135

150-
- <code title="post /images/generations">client.images.<a href="./src/together/resources/images.py">create</a>(\*\*<a href="src/together/types/image_create_params.py">params</a>) -> <a href="./src/together/types/image_file.py">ImageFile</a></code>
136+
- <code title="post /images/generations">client.images.<a href="./src/together/resources/images.py">generate</a>(\*\*<a href="src/together/types/image_generate_params.py">params</a>) -> <a href="./src/together/types/image_file.py">ImageFile</a></code>
151137

152138
# Videos
153139

@@ -270,6 +256,18 @@ Methods:
270256

271257
- <code title="get /hardware">client.hardware.<a href="./src/together/resources/hardware.py">list</a>(\*\*<a href="src/together/types/hardware_list_params.py">params</a>) -> <a href="./src/together/types/hardware_list_response.py">HardwareListResponse</a></code>
272258

259+
# Rerank
260+
261+
Types:
262+
263+
```python
264+
from together.types import RerankCreateResponse
265+
```
266+
267+
Methods:
268+
269+
- <code title="post /rerank">client.rerank.<a href="./src/together/resources/rerank.py">create</a>(\*\*<a href="src/together/types/rerank_create_params.py">params</a>) -> <a href="./src/together/types/rerank_create_response.py">RerankCreateResponse</a></code>
270+
273271
# Batches
274272

275273
Types:

examples/fine_tuning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
print(e)
2727

2828
# download the model
29-
downloaded = client.fine_tuning.download(ft_id=fine_tune_id)
29+
downloaded = client.fine_tuning.content(ft_id=fine_tune_id)
3030
print(downloaded)

examples/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
client = Together(api_key="04cf1e314be9c686cd14b3881f5c4ad76505af4c93a8d3fe6ef62337114d1d51")
77

8-
image = client.images.create(
8+
image = client.images.generate(
99
model="runwayml/stable-diffusion-v1-5",
1010
prompt="space robots",
1111
n=1,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "together"
3-
version = "0.1.0-alpha.28"
3+
version = "2.0.0-alpha.1"
44
description = "The official Python library for the together API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)