Skip to content

Commit 0ad7114

Browse files
feat(api)!: reduce max length of embeddings input
1 parent 5c7462d commit 0ad7114

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-43557cfcc912900321433e1b633b39a81a3bfdbcfc86784aff4ff8219f5ebec4.yml
3-
openapi_spec_hash: e612b47282935484c5de2ebbd49df824
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-38797afacaa32899534343a428aa51ad45a9440ce299aa8356d7056f75605ac9.yml
3+
openapi_spec_hash: 73a38488ff341eae312b04e8aeeafaa0
44
config_hash: efa2ea406c5ecd6883ff8b0fb428e579

src/isaacus/resources/embeddings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create(
7070
7171
Each text must contain at least one non-whitespace character.
7272
73-
No more than 1,000 texts can be embedded in a single request.
73+
No more than 128 texts can be embedded in a single request.
7474
7575
dimensions: A whole number greater than or equal to 1.
7676
@@ -163,7 +163,7 @@ async def create(
163163
164164
Each text must contain at least one non-whitespace character.
165165
166-
No more than 1,000 texts can be embedded in a single request.
166+
No more than 128 texts can be embedded in a single request.
167167
168168
dimensions: A whole number greater than or equal to 1.
169169

src/isaacus/types/embedding_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EmbeddingCreateParams(TypedDict, total=False):
2222
2323
Each text must contain at least one non-whitespace character.
2424
25-
No more than 1,000 texts can be embedded in a single request.
25+
No more than 128 texts can be embedded in a single request.
2626
"""
2727

2828
dimensions: Optional[int]

0 commit comments

Comments
 (0)