Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@
{
".": "2.1.0"
".": "2.1.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 74
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-d0664effad76cfb3a97290815ced94d0766121ee8f0ac137ecc18bd8b5f9c7e8.yml
openapi_spec_hash: b56c7850a7a3d3827ab65c6f0aebe394
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-af83378ff78b22014ab7358ae8aa060cc25e4b818e798f2e09d6deb1226e0ba6.yml
openapi_spec_hash: 113f84b407b43bd991ee6d1afb6efb49
config_hash: 67b76d1064bef2e591cadf50de08ad19
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 2.1.1 (2026-02-12)

Full Changelog: [v2.1.0...v2.1.1](https://github.com/togethercomputer/together-py/compare/v2.1.0...v2.1.1)

### Bug Fixes

* **cli:** handle None model.type in 'together models list' sort ([9c17a0c](https://github.com/togethercomputer/together-py/commit/9c17a0c873264e30ee217edc43269f3c8f8d4990))


### Chores

* **internal:** fix lint error on Python 3.14 ([c66238c](https://github.com/togethercomputer/together-py/commit/c66238c18b21eaa8aa6184bbfb2fc1242d270b6f))

## 2.1.0 (2026-02-10)

Full Changelog: [v2.0.0...v2.1.0](https://github.com/togethercomputer/together-py/compare/v2.0.0...v2.1.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "together"
version = "2.1.0"
version = "2.1.1"
description = "The official Python library for the together API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/together/_utils/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def is_union(tp: Optional[Type[Any]]) -> bool:
else:
import types

return tp is Union or tp is types.UnionType
return tp is Union or tp is types.UnionType # type: ignore[comparison-overlap]


def is_typeddict(tp: Type[Any]) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion src/together/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "together"
__version__ = "2.1.0" # x-release-please-version
__version__ = "2.1.1" # x-release-please-version
4 changes: 3 additions & 1 deletion src/together/lib/cli/api/models/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def list(ctx: click.Context, type: Optional[str], json: bool) -> None:
return

display_list: List[Dict[str, Any]] = []
for model in sorted(models_list, key=lambda x: x.type):

# If the server has a bug and returns an empty .type this will crash if we don't do the or "".
for model in sorted(models_list, key=lambda x: x.type or ""): # type: ignore
price_parts: List[str] = []

# Only show pricing if a value actually exists
Expand Down