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
12 changes: 6 additions & 6 deletions src/libs/DashScope/Generated/DashScope.DashScopeClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::DashScope.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand All @@ -48,7 +48,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient


/// <summary>
///
///
/// </summary>
public EmbeddingsClient Embeddings => new EmbeddingsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
Expand All @@ -57,7 +57,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient
};

/// <summary>
///
///
/// </summary>
public GenerationClient Generation => new GenerationClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
Expand All @@ -66,7 +66,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient
};

/// <summary>
///
///
/// </summary>
public ImagesClient Images => new ImagesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
Expand All @@ -75,7 +75,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient
};

/// <summary>
///
///
/// </summary>
public TasksClient Tasks => new TasksClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
Expand All @@ -84,7 +84,7 @@ public sealed partial class DashScopeClient : global::DashScope.IDashScopeClient
};

/// <summary>
///
///
/// </summary>
public VideosClient Videos => new VideosClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessCreateMultimodalEmbeddingResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}

if (xDashScopeWorkSpace != default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessCreateTextEmbeddingResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}

if (xDashScopeWorkSpace != default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class EmbeddingsClient : global::DashScope.IEmbeddingsClie
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::DashScope.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ partial void ProcessCreateMultimodalGenerationResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}

if (xDashScopeSse != default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ partial void ProcessCreateTextGenerationResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}

if (xDashScopeSse != default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class GenerationClient : global::DashScope.IGenerationClie
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::DashScope.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
12 changes: 6 additions & 6 deletions src/libs/DashScope/Generated/DashScope.IDashScopeClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,33 +40,33 @@ public partial interface IDashScopeClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


/// <summary>
///
///
/// </summary>
public EmbeddingsClient Embeddings { get; }

/// <summary>
///
///
/// </summary>
public GenerationClient Generation { get; }

/// <summary>
///
///
/// </summary>
public ImagesClient Images { get; }

/// <summary>
///
///
/// </summary>
public TasksClient Tasks { get; }

/// <summary>
///
///
/// </summary>
public VideosClient Videos { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IEmbeddingsClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IGenerationClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/libs/DashScope/Generated/DashScope.IImagesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IImagesClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/libs/DashScope/Generated/DashScope.ITasksClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface ITasksClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/libs/DashScope/Generated/DashScope.IVideosClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IVideosClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ partial void ProcessCreateImageGenerationTaskResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}

if (xDashScopeAsync != default)
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DashScope/Generated/DashScope.ImagesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class ImagesClient : global::DashScope.IImagesClient, glob
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::DashScope.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateImageGenerationTaskXDashScopeAsyncJsonConverter : glob
{
return global::DashScope.CreateImageGenerationTaskXDashScopeAsyncExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateImageGenerationTaskXDashScopeAsyncNullableJsonConverte
{
return global::DashScope.CreateImageGenerationTaskXDashScopeAsyncExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateMultimodalGenerationXDashScopeSseJsonConverter : globa
{
return global::DashScope.CreateMultimodalGenerationXDashScopeSseExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateMultimodalGenerationXDashScopeSseNullableJsonConverter
{
return global::DashScope.CreateMultimodalGenerationXDashScopeSseExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateTextGenerationXDashScopeSseJsonConverter : global::Sys
{
return global::DashScope.CreateTextGenerationXDashScopeSseExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateTextGenerationXDashScopeSseNullableJsonConverter : glo
{
return global::DashScope.CreateTextGenerationXDashScopeSseExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateVideoGenerationTaskXDashScopeAsyncJsonConverter : glob
{
return global::DashScope.CreateVideoGenerationTaskXDashScopeAsyncExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class CreateVideoGenerationTaskXDashScopeAsyncNullableJsonConverte
{
return global::DashScope.CreateVideoGenerationTaskXDashScopeAsyncExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace DashScope
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
Loading