fix: add missing created

This commit is contained in:
CaIon 2024-03-21 23:46:43 +08:00
parent 3e03c5a742
commit ff7da08bad

View File

@ -193,6 +193,7 @@ func OpenaiHandler(c *gin.Context, resp *http.Response, promptTokens int, model
} }
textResponse := &dto.TextResponse{ textResponse := &dto.TextResponse{
Id: responseWithError.Id, Id: responseWithError.Id,
Created: responseWithError.Created,
Object: responseWithError.Object, Object: responseWithError.Object,
Choices: responseWithError.Choices, Choices: responseWithError.Choices,
Model: responseWithError.Model, Model: responseWithError.Model,