don't make changes where not needed

This commit is contained in:
samm81 2023-06-02 13:38:20 -04:00
parent 06d467a252
commit cd6a0b1ff8
No known key found for this signature in database

View file

@ -247,8 +247,9 @@ func completionEndpoint(cm *ConfigMerger, o *Option) func(c *fiber.Ctx) error {
Choices: result, Choices: result,
Object: "text_completion", Object: "text_completion",
} }
respData, _ := json.Marshal(resp)
log.Debug().Msgf("Response: %s", respData) jsonResult, _ := json.Marshal(resp)
log.Debug().Msgf("Response: %s", jsonResult)
// Return the prediction in the response body // Return the prediction in the response body
return c.JSON(resp) return c.JSON(resp)