Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed createdAt type #570

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public record BatchResponse : BaseResponse,IOpenAiModels.IMetaData
/// The Unix timestamp (in seconds) for when the batch was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The Unix timestamp (in seconds) for when the batch started processing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public record ChatCompletionCreateResponse : BaseResponse, IOpenAiModels.IId, IO

[JsonPropertyName("usage")] public UsageResponse Usage { get; set; }

[JsonPropertyName("created")] public int CreatedAt { get; set; }
[JsonPropertyName("created")] public long CreatedAt { get; set; }

[JsonPropertyName("id")] public string Id { get; set; }
[JsonPropertyName("system_fingerprint")] public string SystemFingerPrint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public record CompletionCreateResponse : BaseResponse, IOpenAiModels.IId, IOpenA

[JsonPropertyName("usage")] public UsageResponse Usage { get; set; }

[JsonPropertyName("created")] public int CreatedAt { get; set; }
[JsonPropertyName("created")] public long CreatedAt { get; set; }

[JsonPropertyName("id")] public string Id { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ public record EditCreateResponse : BaseResponse, IOpenAiModels.ICreatedAt

[JsonPropertyName("usage")] public UsageResponse Usage { get; set; }

[JsonPropertyName("created")] public int CreatedAt { get; set; }
[JsonPropertyName("created")] public long CreatedAt { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public record FileUploadResponse : BaseResponse, IOpenAiModels.ICreatedAt

[JsonPropertyName("purpose")] public string Purpose { get; set; }

[JsonPropertyName("created_at")] public int CreatedAt { get; set; }
[JsonPropertyName("created_at")] public long CreatedAt { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public record FineTuneResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.

[JsonPropertyName("updated_at")] public int? UpdatedAt { get; set; }

[JsonPropertyName("created_at")] public int CreatedAt { get; set; }
[JsonPropertyName("created_at")] public long CreatedAt { get; set; }
[JsonPropertyName("id")] public string Id { get; set; }

[JsonPropertyName("model")] public string Model { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public record FineTuningJobResponse : BaseResponse, IOpenAiModels.IId, IOpenAiMo
/// The Unix timestamp (in seconds) for when the fine-tuning job was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The object identifier, which can be referenced in the API endpoints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public record ImageCreateResponse : BaseResponse, IOpenAiModels.ICreatedAt
{
[JsonPropertyName("data")] public List<ImageDataResult> Results { get; set; }

[JsonPropertyName("created")] public int CreatedAt { get; set; }
[JsonPropertyName("created")] public long CreatedAt { get; set; }

public record ImageDataResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public record RunStepResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.I
/// The Unix timestamp (in seconds) for when the run step was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The identifier of the run step, which can be referenced in API endpoints.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record VectorStoreFileBatchObject:BaseResponse
/// The Unix timestamp (in seconds) for when the vector store files batch was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public record VectorStoreFileObject : BaseResponse
/// The Unix timestamp (in seconds) for when the vector store file was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public record VectorStoreObjectResponse:BaseResponse
/// The Unix timestamp (in seconds) for when the vector store was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The name of the vector store.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record AssistantFileResponse : BaseResponse, IOpenAiModels.IId, IOpenAiMo
/// The Unix timestamp (in seconds) for when the assistant file was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The identifier, which can be referenced in API endpoints.
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public record AssistantResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels
/// The Unix timestamp (in seconds) for when the assistant was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The identifier, which can be referenced in API endpoints.
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/FileResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public record FileResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.ICre
public UploadFilePurposes.UploadFilePurpose PurposeEnum => UploadFilePurposes.ToEnum(Purpose);
[JsonPropertyName("purpose")] public string Purpose { get; set; }
[JsonPropertyName("status")] public string Status { get; set; }
[JsonPropertyName("created_at")] public int CreatedAt { get; set; }
[JsonPropertyName("created_at")] public long CreatedAt { get; set; }
[JsonPropertyName("id")] public string Id { get; set; }
}
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/IOpenAiModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface IAssistantId

public interface ICreatedAt
{
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }
}

public interface ICompletedAt
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/MessageResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public record MessageResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.I
/// The Unix timestamp (in seconds) for when the message was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The identifier, which can be referenced in API endpoints.
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/RunResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public record RunResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.IMode
/// The Unix timestamp (in seconds) for when the run was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The list of File IDs the assistant used for this run.
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/ObjectModels/SharedModels/ThreadResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public record ThreadResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels.IC
/// The Unix timestamp (in seconds) for when the assistant was created.
/// </summary>
[JsonPropertyName("created_at")]
public int CreatedAt { get; set; }
public long CreatedAt { get; set; }

/// <summary>
/// The identifier, which can be referenced in API endpoints.
Expand Down
Loading