Explorar o código

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

CaIon hai 6 meses
pai
achega
ef32cc8e0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dto/openai_response.go

+ 1 - 1
dto/openai_response.go

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