Spaces:
Runtime error
Runtime error
Update api/chatgpt/api.go
Browse files- api/chatgpt/api.go +1 -1
api/chatgpt/api.go
CHANGED
@@ -128,7 +128,7 @@ func ContinueConversation(c *gin.Context, conversationID string, parentMessageID
|
|
128 |
|
129 |
defer resp.Body.Close()
|
130 |
if resp.StatusCode != http.StatusOK {
|
131 |
-
logger.Info(fmt.Sprintf("ContinueConversationRequestStatusCode != http.StatusOK"))
|
132 |
responseMap := make(map[string]interface{})
|
133 |
json.NewDecoder(resp.Body).Decode(&responseMap)
|
134 |
c.AbortWithStatusJSON(resp.StatusCode, responseMap)
|
|
|
128 |
|
129 |
defer resp.Body.Close()
|
130 |
if resp.StatusCode != http.StatusOK {
|
131 |
+
logger.Info(fmt.Sprintf("ContinueConversationRequestStatusCode != http.StatusOK %d", resp.StatusCode))
|
132 |
responseMap := make(map[string]interface{})
|
133 |
json.NewDecoder(resp.Body).Decode(&responseMap)
|
134 |
c.AbortWithStatusJSON(resp.StatusCode, responseMap)
|