Commit 87a2c3c 1 parent f86c58e commit 87a2c3c Copy full SHA for 87a2c3c
File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @activepieces/piece-utility-ai" ,
3
- "version" : " 0.0.1 "
3
+ "version" : " 0.0.2 "
4
4
}
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ export const classifyText = createAction({
17
17
description : 'Categories to classify text into.' ,
18
18
required : true ,
19
19
} ) ,
20
- maxTokens : Property . Number ( {
21
- displayName : 'Max Tokens' ,
22
- required : false ,
23
- defaultValue : 2000 ,
24
- } ) ,
25
20
} ,
26
21
async run ( context ) {
27
22
const categories = ( context . propsValue . categories as string [ ] ) ?? [ ] ;
@@ -33,7 +28,7 @@ export const classifyText = createAction({
33
28
34
29
const response = await ai . chat . text ( {
35
30
model : context . propsValue . model ,
36
- maxTokens : context . propsValue . maxTokens ,
31
+ maxTokens : 2000 ,
37
32
messages : [
38
33
{
39
34
role : AIChatRole . USER ,
You can’t perform that action at this time.
0 commit comments