Browse Source
AI rule node: relax validation for top K
pull/13371/head
Dmytro Skarzhynets
1 year ago
No known key found for this signature in database
GPG Key ID: 2B51652F224037DF
3 changed files with
3 additions and
3 deletions
-
common/data/src/main/java/org/thingsboard/server/common/data/ai/model/chat/AnthropicChatModelConfig.java
-
common/data/src/main/java/org/thingsboard/server/common/data/ai/model/chat/GoogleAiGeminiChatModelConfig.java
-
common/data/src/main/java/org/thingsboard/server/common/data/ai/model/chat/GoogleVertexAiGeminiChatModelConfig.java
|
|
|
@ -33,7 +33,7 @@ public record AnthropicChatModelConfig( |
|
|
|
@NotBlank String modelId, |
|
|
|
@PositiveOrZero Double temperature, |
|
|
|
@Positive @Max(1) Double topP, |
|
|
|
@Positive Integer topK, |
|
|
|
@PositiveOrZero Integer topK, |
|
|
|
@Positive Integer maxOutputTokens, |
|
|
|
@With @Positive Integer timeoutSeconds, |
|
|
|
@With @PositiveOrZero Integer maxRetries |
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ public record GoogleAiGeminiChatModelConfig( |
|
|
|
@NotBlank String modelId, |
|
|
|
@PositiveOrZero Double temperature, |
|
|
|
@Positive @Max(1) Double topP, |
|
|
|
@Positive Integer topK, |
|
|
|
@PositiveOrZero Integer topK, |
|
|
|
Double frequencyPenalty, |
|
|
|
Double presencePenalty, |
|
|
|
@Positive Integer maxOutputTokens, |
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ public record GoogleVertexAiGeminiChatModelConfig( |
|
|
|
@NotBlank String modelId, |
|
|
|
@PositiveOrZero Double temperature, |
|
|
|
@Positive @Max(1) Double topP, |
|
|
|
@Positive Integer topK, |
|
|
|
@PositiveOrZero Integer topK, |
|
|
|
Double frequencyPenalty, |
|
|
|
Double presencePenalty, |
|
|
|
@Positive Integer maxOutputTokens, |
|
|
|
|