mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
19 lines
609 B
C#
19 lines
609 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Yi.Framework.AiHub.Domain.Shared.Dtos.OpenAi.Images;
|
|
|
|
public record ImageCreateResponse : ThorBaseResponse
|
|
{
|
|
[JsonPropertyName("data")] public List<ImageDataResult> Results { get; set; }
|
|
|
|
[JsonPropertyName("usage")] public ThorUsageResponse? Usage { get; set; } = new();
|
|
|
|
|
|
|
|
public record ImageDataResult
|
|
{
|
|
[JsonPropertyName("url")] public string Url { get; set; }
|
|
[JsonPropertyName("b64_json")] public string B64 { get; set; }
|
|
[JsonPropertyName("revised_prompt")] public string RevisedPrompt { get; set; }
|
|
}
|
|
} |