|
|
@@ -86,7 +86,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
Map<String, Object> imagineParam = MapUtil.builder(new HashMap<String,Object>())
|
|
|
.put("prompt", prompt)
|
|
|
.put("state", user.getId())
|
|
|
- .put("botType", botType)
|
|
|
.build();
|
|
|
if (CollectionUtil.isNotEmpty(base64Array)) {
|
|
|
imagineParam.put("base64Array", base64Array);
|
|
|
@@ -101,7 +100,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
MidjourneyUserConversation conversation = new MidjourneyUserConversation()
|
|
|
.setUserId(userId).setTaskId(taskId).setAction(action).setPrompt(prompt)
|
|
|
.setMode(mode).setStartTime(System.currentTimeMillis()).setProgress("0%")
|
|
|
- .setBotType(botType)
|
|
|
.setStatus(result.getCode() == 21 ? "NOT_START" : "IN_PROGRESS").setTaskId(taskId);
|
|
|
if (MapUtil.isNotEmpty(properties)) {
|
|
|
conversation.setProperties(Jsons.toJson(properties));
|
|
|
@@ -118,7 +116,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
Map<String, Object> param = MapUtil.builder(new HashMap<String,Object>())
|
|
|
.put("state", user.getId())
|
|
|
.put("base64", base64)
|
|
|
- .put("botType", botType)
|
|
|
.build();
|
|
|
SubmitResult result = submit(user.getMode(),"describe", null, param);
|
|
|
return saveConversation(user.getId(), user.getMode(),result,"DESCRIBE", StringUtils.EMPTY, botType);
|
|
|
@@ -129,7 +126,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
Map<String, Object> param = MapUtil.builder(new HashMap<String,Object>())
|
|
|
.put("base64Array", base64Array)
|
|
|
.put("state", user.getId())
|
|
|
- .put("botType", botType)
|
|
|
.build();
|
|
|
if (dimensions != null) {
|
|
|
param.put("dimensions", dimensions);
|
|
|
@@ -159,7 +155,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
Map<String, Object> param = MapUtil.builder(new HashMap<String,Object>())
|
|
|
.put("prompt", prompt)
|
|
|
.put("state", user.getId())
|
|
|
- .put("botType", botType)
|
|
|
.build();
|
|
|
SubmitResult result = submit(user.getMode(),"shorten", null, param);
|
|
|
return saveConversation(user.getId(), user.getMode(), result,"SHORTEN", StringUtils.EMPTY, botType);
|
|
|
@@ -226,7 +221,6 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
.put("taskId", taskId)
|
|
|
.put("state", user.getId())
|
|
|
.put("customId", customId)
|
|
|
- .put("botType", botType)
|
|
|
.build();
|
|
|
SubmitResult result = submit(user.getMode(),"action", conversation.getInstanceId(),param);
|
|
|
if (result.getCode() == 21) {
|