diff --git a/types/chat.go b/types/chat.go index 8c414ffd..68cdca49 100644 --- a/types/chat.go +++ b/types/chat.go @@ -245,7 +245,7 @@ func (c *ChatCompletionChoice) CheckChoice(request *ChatCompletionRequest) { type ChatCompletionResponse struct { ID string `json:"id"` Object string `json:"object"` - Created int64 `json:"created"` + Created any `json:"created"` Model string `json:"model"` Choices []ChatCompletionChoice `json:"choices"` Usage *Usage `json:"usage,omitempty"` @@ -368,7 +368,7 @@ func (c *ChatCompletionStreamChoice) CheckChoice(request *ChatCompletionRequest) type ChatCompletionStreamResponse struct { ID string `json:"id"` Object string `json:"object"` - Created int64 `json:"created"` + Created any `json:"created"` Model string `json:"model"` Choices []ChatCompletionStreamChoice `json:"choices"` PromptAnnotations any `json:"prompt_annotations,omitempty"` diff --git a/types/completion.go b/types/completion.go index 3a8fad47..698bd15d 100644 --- a/types/completion.go +++ b/types/completion.go @@ -29,7 +29,7 @@ type CompletionChoice struct { type CompletionResponse struct { ID string `json:"id"` Object string `json:"object"` - Created int64 `json:"created"` + Created any `json:"created"` Model string `json:"model"` Choices []CompletionChoice `json:"choices"` Usage *Usage `json:"usage,omitempty"` diff --git a/types/image.go b/types/image.go index 53559532..bf8531c2 100644 --- a/types/image.go +++ b/types/image.go @@ -14,7 +14,7 @@ type ImageRequest struct { } type ImageResponse struct { - Created int64 `json:"created,omitempty"` + Created any `json:"created,omitempty"` Data []ImageResponseDataInner `json:"data,omitempty"` }