Skip to content

Commit ec933a8

Browse files
huiwengohjwmueller
andauthored
Add gpt-5.1 support (#135)
Co-authored-by: Jonas Mueller <[email protected]>
1 parent 680ddf4 commit ec933a8

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.1.39] - 2025-11-21
11+
12+
## Added
13+
14+
- Add support for new model: `gpt-5.1`
15+
1016
## [1.1.38] - 2025-11-13
1117

1218
## Added
@@ -386,7 +392,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
386392

387393
- Release of the Cleanlab TLM Python client.
388394

389-
[Unreleased]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.38...HEAD
395+
[Unreleased]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.39...HEAD
396+
[1.1.39]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.38...v1.1.39
390397
[1.1.38]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.37...v1.1.38
391398
[1.1.37]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.36...v1.1.37
392399
[1.1.36]: https://github.com/cleanlab/cleanlab-tlm/compare/v1.1.35...v1.1.36

src/cleanlab_tlm/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: MIT
2-
__version__ = "1.1.38"
2+
__version__ = "1.1.39"

src/cleanlab_tlm/internal/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"gpt-5",
2121
"gpt-5-mini",
2222
"gpt-5-nano",
23+
"gpt-5.1",
2324
"o1-preview",
2425
"o1",
2526
"o1-mini",

src/cleanlab_tlm/tlm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,12 @@ class TLMOptions(TypedDict):
771771
You can set custom values for these arguments regardless of the quality preset specified.
772772
773773
Args:
774-
model ({"gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "o4-mini", "o3", "gpt-4.5-preview", "gpt-4o-mini", "gpt-4o", \
774+
model ({"gpt-5.1", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "o4-mini", "o3", "gpt-4.5-preview", "gpt-4o-mini", "gpt-4o", \
775775
"o3-mini", "o1", "o1-mini", "gpt-4", "gpt-3.5-turbo-16k", "claude-opus-4-0", "claude-sonnet-4-0", "claude-3.7-sonnet", \
776776
"claude-3.5-sonnet-v2", "claude-3.5-sonnet", "claude-3.5-haiku", "claude-3-haiku", "nova-micro", "nova-lite", "nova-pro"}, default = "gpt-4.1-mini"): \
777777
Underlying base LLM to use (better models yield better results, faster models yield faster results).
778778
- Models still in beta: "o3", "o1", "o4-mini", "o3-mini", "o1-mini", "gpt-4.5-preview", "claude-opus-4-0", "claude-sonnet-4-0", "claude-3.7-sonnet", "claude-3.5-haiku".
779-
- Recommended models for accuracy: "gpt-5", "gpt-4.1", "o4-mini", "o3", "claude-opus-4-0", "claude-sonnet-4-0".
779+
- Recommended models for accuracy: "gpt-5.1", "gpt-4.1", "o3", "claude-opus-4-0", "claude-sonnet-4-0".
780780
- Recommended models for low latency/costs: "gpt-4.1-nano", "nova-micro".
781781
782782
log (list[str], default = []): optionally specify additional logs or metadata that TLM should return.

tests/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"o3-mini",
6060
"o4-mini",
6161
"gpt-4.5-preview",
62+
"gpt-5.1", # supports perplexity score in some configs, should update at a later date
6263
"gpt-5",
6364
"gpt-5-mini",
6465
"gpt-5-nano",

0 commit comments

Comments
 (0)