Browse Source
AI rule node: increase length limit for prompts
pull/13371/head
Dmytro Skarzhynets
1 year ago
No known key found for this signature in database
GPG Key ID: 2B51652F224037DF
1 changed files with
2 additions and
2 deletions
-
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/ai/TbAiNodeConfiguration.java
|
|
|
@ -37,11 +37,11 @@ public class TbAiNodeConfiguration implements NodeConfiguration<TbAiNodeConfigur |
|
|
|
private AiModelSettingsId aiModelSettingsId; |
|
|
|
|
|
|
|
@Pattern(regexp = ".*\\S.*", message = "must contain at least one non-whitespace character") |
|
|
|
@Length(min = 1, max = 1000) |
|
|
|
@Length(min = 1, max = 10000) |
|
|
|
private String systemPrompt; |
|
|
|
|
|
|
|
@NotBlank |
|
|
|
@Length(min = 1, max = 1000) |
|
|
|
@Length(min = 1, max = 10000) |
|
|
|
private String userPrompt; |
|
|
|
|
|
|
|
@NotNull |
|
|
|
|