Skip to content

Commit

Permalink
Merge pull request #26 from AI-Chef/master
Browse files Browse the repository at this point in the history
fix bug: Some mj prompts may return a "FAILURE" status
  • Loading branch information
Licoy authored Jun 17, 2023
2 parents a9483f2 + 13c12f4 commit 233000b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ export const useChatStore = create<ChatStore>()(
Locale.Midjourney.UnknownReason;
isFinished = true;
break;
case "FAILURE":
content =
statusResJson.failReason ||
Locale.Midjourney.UnknownReason;
isFinished = true;
break;
case "NOT_START":
content = Locale.Midjourney.TaskNotStart;
break;
Expand Down

0 comments on commit 233000b

Please sign in to comment.