Skip to content

Commit e86f57d

Browse files
feat(api): remove -preview from model name
1 parent 1094530 commit e86f57d

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-33eb383de2961937f7821f279eac79d884a36666e9627d155b1101ab3fd97ce4.yml
3-
openapi_spec_hash: ad00c3677c87aef537f722a542d29280
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-d499915d5c9d28ffae10a108d7655c026676b21d3b34f07ead24c7d50c546633.yml
3+
openapi_spec_hash: d91d2843e3799463b60832553d4faf70
44
config_hash: 1d77b499f5b4f2dc6986fdd5936d18ef

src/isaacus/resources/enrichments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> EnrichmentsResourceWithStreamingResponse:
4747
def create(
4848
self,
4949
*,
50-
model: Literal["kanon-2-enricher-preview"],
50+
model: Literal["kanon-2-enricher"],
5151
texts: Union[SequenceNotStr[str], str],
5252
overflow_strategy: Optional[Literal["auto", "drop_end"]] | Omit = omit,
5353
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -129,7 +129,7 @@ def with_streaming_response(self) -> AsyncEnrichmentsResourceWithStreamingRespon
129129
async def create(
130130
self,
131131
*,
132-
model: Literal["kanon-2-enricher-preview"],
132+
model: Literal["kanon-2-enricher"],
133133
texts: Union[SequenceNotStr[str], str],
134134
overflow_strategy: Optional[Literal["auto", "drop_end"]] | Omit = omit,
135135
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/isaacus/types/enrichment_create_params.py

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

1212

1313
class EnrichmentCreateParams(TypedDict, total=False):
14-
model: Required[Literal["kanon-2-enricher-preview"]]
14+
model: Required[Literal["kanon-2-enricher"]]
1515
"""
1616
The ID of the [model](https://docs.isaacus.com/models#enrichment) to use for
1717
enrichment.

tests/api_resources/test_enrichments.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestEnrichments:
2121
@parametrize
2222
def test_method_create(self, client: Isaacus) -> None:
2323
enrichment = client.enrichments.create(
24-
model="kanon-2-enricher-preview",
24+
model="kanon-2-enricher",
2525
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
2626
)
2727
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
@@ -30,7 +30,7 @@ def test_method_create(self, client: Isaacus) -> None:
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3232
enrichment = client.enrichments.create(
33-
model="kanon-2-enricher-preview",
33+
model="kanon-2-enricher",
3434
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
3535
overflow_strategy=None,
3636
)
@@ -40,7 +40,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
4040
@parametrize
4141
def test_raw_response_create(self, client: Isaacus) -> None:
4242
response = client.enrichments.with_raw_response.create(
43-
model="kanon-2-enricher-preview",
43+
model="kanon-2-enricher",
4444
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
4545
)
4646

@@ -53,7 +53,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
5353
@parametrize
5454
def test_streaming_response_create(self, client: Isaacus) -> None:
5555
with client.enrichments.with_streaming_response.create(
56-
model="kanon-2-enricher-preview",
56+
model="kanon-2-enricher",
5757
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
5858
) as response:
5959
assert not response.is_closed
@@ -74,7 +74,7 @@ class TestAsyncEnrichments:
7474
@parametrize
7575
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
7676
enrichment = await async_client.enrichments.create(
77-
model="kanon-2-enricher-preview",
77+
model="kanon-2-enricher",
7878
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
7979
)
8080
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
@@ -83,7 +83,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
8383
@parametrize
8484
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
8585
enrichment = await async_client.enrichments.create(
86-
model="kanon-2-enricher-preview",
86+
model="kanon-2-enricher",
8787
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
8888
overflow_strategy=None,
8989
)
@@ -93,7 +93,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
9393
@parametrize
9494
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
9595
response = await async_client.enrichments.with_raw_response.create(
96-
model="kanon-2-enricher-preview",
96+
model="kanon-2-enricher",
9797
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
9898
)
9999

@@ -106,7 +106,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
106106
@parametrize
107107
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
108108
async with async_client.enrichments.with_streaming_response.create(
109-
model="kanon-2-enricher-preview",
109+
model="kanon-2-enricher",
110110
texts=['1.5 You (the "User") agree to be bound by these Terms.'],
111111
) as response:
112112
assert not response.is_closed

0 commit comments

Comments
 (0)