AI rule node: rename aiModelId to modelId in rule node config
This commit is contained in:
parent
17d7931e5d
commit
5abbe9ec02
@ -97,7 +97,7 @@ public final class TbAiNode extends TbAbstractExternalNode implements TbNode {
|
||||
systemPrompt = config.getSystemPrompt();
|
||||
userPrompt = config.getUserPrompt();
|
||||
timeoutSeconds = config.getTimeoutSeconds();
|
||||
modelId = config.getAiModelId();
|
||||
modelId = config.getModelId();
|
||||
|
||||
Optional<AiModel> model = ctx.getAiModelService().findAiModelByTenantIdAndId(ctx.getTenantId(), modelId);
|
||||
if (model.isEmpty()) {
|
||||
|
||||
@ -32,7 +32,7 @@ import static org.thingsboard.rule.engine.ai.TbResponseFormat.TbJsonResponseForm
|
||||
public class TbAiNodeConfiguration implements NodeConfiguration<TbAiNodeConfiguration> {
|
||||
|
||||
@NotNull
|
||||
private AiModelId aiModelId;
|
||||
private AiModelId modelId;
|
||||
|
||||
@Pattern(regexp = ".*\\S.*", message = "must not be blank")
|
||||
@Length(min = 1, max = 10000)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user