Skip to content
Merged
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 @@ -35,9 +35,8 @@ public sealed partial class CompactResource
/// Unix timestamp (in seconds) when the compacted conversation was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Token accounting for the compaction pass, including cached, reasoning, and total tokens.
Expand Down Expand Up @@ -77,7 +76,7 @@ public sealed partial class CompactResource
public CompactResource(
string id,
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ItemField> output,
global::System.DateTimeOffset createdAt,
int createdAt,
global::tryAGI.OpenAI.ResponseUsage usage,
global::tryAGI.OpenAI.CompactResourceObject @object = global::tryAGI.OpenAI.CompactResourceObject.ResponseCompaction)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public sealed partial class SkillResource
/// Unix timestamp (seconds) for when the skill was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Default version for the skill.
Expand Down Expand Up @@ -98,7 +97,7 @@ public SkillResource(
string id,
string name,
string description,
global::System.DateTimeOffset createdAt,
int createdAt,
string defaultVersion,
string latestVersion,
global::tryAGI.OpenAI.SkillResourceObject @object = global::tryAGI.OpenAI.SkillResourceObject.Skill)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public sealed partial class SkillVersionResource
/// Unix timestamp (seconds) for when the version was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Name of the skill version.
Expand Down Expand Up @@ -98,7 +97,7 @@ public SkillVersionResource(
string id,
string skillId,
string version,
global::System.DateTimeOffset createdAt,
int createdAt,
string name,
string description,
global::tryAGI.OpenAI.SkillVersionResourceObject @object = global::tryAGI.OpenAI.SkillVersionResourceObject.SkillVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public sealed partial class VideoCharacterResource
/// Unix timestamp (in seconds) when the character was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -46,7 +45,7 @@ public sealed partial class VideoCharacterResource
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public VideoCharacterResource(
global::System.DateTimeOffset createdAt,
int createdAt,
string? id,
string? name)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,20 @@ public sealed partial class VideoResource
/// Unix timestamp (seconds) for when the job was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
public required int CreatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("completed_at")]
public global::System.DateTimeOffset? CompletedAt { get; set; }
public int? CompletedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("expires_at")]
public global::System.DateTimeOffset? ExpiresAt { get; set; }
public int? ExpiresAt { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -147,11 +146,11 @@ public VideoResource(
global::tryAGI.OpenAI.VideoModel model,
global::tryAGI.OpenAI.VideoStatus status,
int progress,
global::System.DateTimeOffset createdAt,
int createdAt,
global::tryAGI.OpenAI.VideoSize size,
string seconds,
global::System.DateTimeOffset? completedAt,
global::System.DateTimeOffset? expiresAt,
int? completedAt,
int? expiresAt,
string? prompt,
string? remixedFromVideoId,
global::tryAGI.OpenAI.Error2? error,
Expand Down
2 changes: 2 additions & 0 deletions src/libs/tryAGI.OpenAI/asyncapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@
},
"file_url": {
"type": "string",
"format": "uri",
"description": "The URL of the file to be sent to the model."
},
"detail": {
Expand Down Expand Up @@ -909,6 +910,7 @@
"anyOf": [
{
"type": "string",
"format": "uri",
"description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL."
},
{
Expand Down
16 changes: 16 additions & 0 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74352,6 +74352,7 @@ components:
x-stainless-const: true
url:
type: string
format: uri
description: The URL of the web resource.
start_index:
type: integer
Expand Down Expand Up @@ -74577,6 +74578,7 @@ components:
image_url:
anyOf:
- type: string
format: uri
description: >-
The URL of the image to be sent to the model. A fully qualified
URL or base64 encoded image in a data URL.
Expand Down Expand Up @@ -74613,6 +74615,7 @@ components:
image_url:
anyOf:
- type: string
format: uri
description: The URL of the screenshot image.
- type: 'null'
file_id:
Expand Down Expand Up @@ -74661,6 +74664,7 @@ components:
The content of the file to be sent to the model.
file_url:
type: string
format: uri
description: The URL of the file to be sent to the model.
detail:
$ref: '#/components/schemas/FileInputDetail'
Expand Down Expand Up @@ -75827,6 +75831,7 @@ components:
x-stainless-const: true
url:
type: string
format: uri
description: The URL of the image output from the code interpreter.
type: object
required:
Expand Down Expand Up @@ -76361,6 +76366,7 @@ components:
anyOf:
- type: string
maxLength: 20971520
format: uri
description: >-
The URL of the image to be sent to the model. A fully qualified
URL or base64 encoded image in a data URL.
Expand Down Expand Up @@ -76419,6 +76425,7 @@ components:
file_url:
anyOf:
- type: string
format: uri
description: The URL of the file to be sent to the model.
- type: 'null'
detail:
Expand Down Expand Up @@ -76999,6 +77006,7 @@ components:
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
created_at:
type: integer
format: unixtime
description: >-
The time at which the conversation was created, measured in seconds
since the Unix epoch.
Expand Down Expand Up @@ -77256,17 +77264,20 @@ components:
description: Approximate completion percentage for the generation task.
created_at:
type: integer
format: unixtime
description: Unix timestamp (seconds) for when the job was created.
completed_at:
anyOf:
- type: integer
format: unixtime
description: >-
Unix timestamp (seconds) for when the job completed, if
finished.
- type: 'null'
expires_at:
anyOf:
- type: integer
format: unixtime
description: >-
Unix timestamp (seconds) for when the downloadable assets
expire, if set.
Expand Down Expand Up @@ -77352,6 +77363,7 @@ components:
image_url:
type: string
maxLength: 20971520
format: uri
description: A fully qualified URL or base64-encoded data URL.
file_id:
type: string
Expand Down Expand Up @@ -77462,6 +77474,7 @@ components:
- type: 'null'
created_at:
type: integer
format: unixtime
description: Unix timestamp (in seconds) when the character was created.
type: object
required:
Expand Down Expand Up @@ -77838,6 +77851,7 @@ components:
description: The compacted list of output items.
created_at:
type: integer
format: unixtime
description: >-
Unix timestamp (in seconds) when the compacted conversation was
created.
Expand Down Expand Up @@ -77896,6 +77910,7 @@ components:
description: Description of the skill.
created_at:
type: integer
format: unixtime
description: Unix timestamp (seconds) for when the skill was created.
default_version:
type: string
Expand Down Expand Up @@ -78013,6 +78028,7 @@ components:
description: Version number for this skill.
created_at:
type: integer
format: unixtime
description: Unix timestamp (seconds) for when the version was created.
name:
type: string
Expand Down