feat: add midjourney log

This commit is contained in:
CaIon
2023-09-12 03:17:26 +08:00
parent 4a836a4cb6
commit 4895bd744a
5 changed files with 8 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import (
"net/http"
"one-api/common"
"one-api/model"
"strconv"
"strings"
"github.com/gin-gonic/gin"
@@ -327,7 +328,7 @@ func relayMidjourneySubmit(c *gin.Context, relayMode int) *MidjourneyResponse {
if resp.StatusCode != 200 {
return &MidjourneyResponse{
Code: 4,
Description: "fail_to_fetch_midjourney",
Description: "fail_to_fetch_midjourney status_code: " + strconv.Itoa(resp.StatusCode),
}
}
if err != nil {