Skip to content

Commit 87a2c3c

Browse files
committed
chore: remove max tokens from classify text
1 parent f86c58e commit 87a2c3c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "@activepieces/piece-utility-ai",
3-
"version": "0.0.1"
3+
"version": "0.0.2"
44
}

packages/pieces/community/utility-ai/src/lib/actions/classify-text.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ export const classifyText = createAction({
1717
description: 'Categories to classify text into.',
1818
required: true,
1919
}),
20-
maxTokens: Property.Number({
21-
displayName: 'Max Tokens',
22-
required: false,
23-
defaultValue: 2000,
24-
}),
2520
},
2621
async run(context) {
2722
const categories = (context.propsValue.categories as string[]) ?? [];
@@ -33,7 +28,7 @@ export const classifyText = createAction({
3328

3429
const response = await ai.chat.text({
3530
model: context.propsValue.model,
36-
maxTokens: context.propsValue.maxTokens,
31+
maxTokens: 2000,
3732
messages: [
3833
{
3934
role: AIChatRole.USER,

0 commit comments

Comments
 (0)