add prompt translating function for mobile midjourney page

This commit is contained in:
RockYang
2024-03-06 16:22:03 +08:00
parent 8cfe6bfc17
commit 636db4afcc
7 changed files with 110 additions and 43 deletions

View File

@@ -276,6 +276,7 @@ func (h *ChatHandler) sendOpenAiMessage(
var res types.ApiError
err = json.Unmarshal(body, &res)
if err != nil {
logger.Debug(string(body))
return fmt.Errorf("error with decode response: %v", err)
}