2025-12-30 18:30:32 +01:00
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Contract for nested image URL sub-content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Some providers use a nested object format for image URLs:
|
|
|
|
|
/// <code>
|
|
|
|
|
/// { "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,..." } }
|
|
|
|
|
/// </code>
|
|
|
|
|
/// This interface represents the inner object with the "url" property.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public interface ISubContentImageUrl
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The URL or base64-encoded data URI of the image.
|
|
|
|
|
/// </summary>
|
2026-11-03 07:59:30 +01:00
|
|
|
public string Url { get; set; }
|
2025-12-30 18:30:32 +01:00
|
|
|
}
|