Browse Source

✨ fix(dto): change Created field type in OpenAITextResponse to any. (close #1131)

CaIon 6 months ago
parent
commit
ef32cc8e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dto/openai_response.go

+ 1 - 1
dto/openai_response.go

@@ -26,7 +26,7 @@ type OpenAITextResponse struct {
 	Id      string                     `json:"id"`
 	Model   string                     `json:"model"`
 	Object  string                     `json:"object"`
-	Created int64                      `json:"created"`
+	Created any                        `json:"created"`
 	Choices []OpenAITextResponseChoice `json:"choices"`
 	Error   *OpenAIError               `json:"error,omitempty"`
 	Usage   `json:"usage"`