Skip to content

Commit 8dfea48

Browse files
feat(api)!: reduce max length of embeddings input
1 parent 14a9df4 commit 8dfea48

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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

packages/mcp-server/src/tools/embeddings/create-embeddings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const tool: Tool = {
4242
},
4343
],
4444
description:
45-
'The text or array of texts to embed.\n\nEach text must contain at least one non-whitespace character.\n\nNo more than 1,000 texts can be embedded in a single request.',
45+
'The text or array of texts to embed.\n\nEach text must contain at least one non-whitespace character.\n\nNo more than 128 texts can be embedded in a single request.',
4646
},
4747
dimensions: {
4848
type: 'integer',

src/resources/embeddings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface EmbeddingCreateParams {
7676
*
7777
* Each text must contain at least one non-whitespace character.
7878
*
79-
* No more than 1,000 texts can be embedded in a single request.
79+
* No more than 128 texts can be embedded in a single request.
8080
*/
8181
texts: Array<string> | string;
8282

0 commit comments

Comments
 (0)