|
|
@ -477,7 +477,6 @@ public class ExpressionHelper {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (doc != null && parameterValues.length == 1) {
|
|
|
|
if (doc != null && parameterValues.length == 1) {
|
|
|
|
String prompt = parameterValues[0].getStringValue();
|
|
|
|
String prompt = parameterValues[0].getStringValue();
|
|
|
|
EntityLog.log(context, EntityLog.Type.Rules, message, "AI prompt=" + prompt);
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(prompt)) {
|
|
|
|
if (!TextUtils.isEmpty(prompt)) {
|
|
|
|
result = AI.completeChat(context, -1L, doc.text(), null, prompt).toString();
|
|
|
|
result = AI.completeChat(context, -1L, doc.text(), null, prompt).toString();
|
|
|
|
EntityLog.log(context, EntityLog.Type.Rules, message, "AI result=" + result);
|
|
|
|
EntityLog.log(context, EntityLog.Type.Rules, message, "AI result=" + result);
|
|
|
|