fix: add missing id,object,created

This commit is contained in:
CaIon
2024-03-21 23:44:39 +08:00
parent 171135bc05
commit 2b4119df8a
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -192,6 +192,8 @@ func OpenaiHandler(c *gin.Context, resp *http.Response, promptTokens int, model
}
}
textResponse := &dto.TextResponse{
Id: responseWithError.Id,
Object: responseWithError.Object,
Choices: responseWithError.Choices,
Model: responseWithError.Model,
Usage: *usage,