Skip to content

Commit

Permalink
Merge branch 'v0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
yeguangsuixing committed Sep 21, 2023
2 parents 26d888a + f298774 commit 2c59447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,28 +498,28 @@ export class ChatGPTApi implements LLMApi {
const entireContent =
prefixContent + `[![${taskId}](${imgUrl})](${imgUrl})`;
isFinished = true;
options.onFinish(entireContent);

botMessage.attr.imgUrl = imgUrl;
// if (statusResJson.action === "DESCRIBE" && statusResJson.prompt) {
// botMessage.content += `\n${statusResJson.prompt}`;
// }
botMessage.attr.status = "SUCCESS";
botMessage.attr.finished = true;
options.onFinish(entireContent);
break;
}
case 40:
content =
statusResJson.data.error || Locale.Midjourney.UnknownReason;
isFinished = true;
botMessage.attr.status = "FAILURE";
botMessage.attr.finished = true;
options.onFinish(
prefixContent +
`**${
Locale.Midjourney.TaskStatus
}:** [${new Date().toLocaleString()}] - ${content}`,
);
botMessage.attr.status = "FAILURE";
botMessage.attr.finished = true;
break;
case 0:
content = Locale.Midjourney.TaskNotStart;
Expand Down

0 comments on commit 2c59447

Please sign in to comment.