fix: add missing id,object,created

This commit is contained in:
CaIon
2024-03-21 23:44:39 +08:00
parent d9344d79cf
commit 3e03c5a742
2 changed files with 8 additions and 1 deletions

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,