DataUrlParts
Namespace: Vercel.AI.Prompt
public sealed class DataUrlPartsMedia type and base64 payload from a data URL. Maps to splitDataUrl.
Inheritance: object
Constructors
Section titled “Constructors”DataUrlParts(string?, string?)
Section titled “DataUrlParts(string?, string?)”public DataUrlParts(string? mediaType, string? base64Content)Creates parts.
Parameters
| Name | Type | Description |
|---|---|---|
mediaType |
string | |
base64Content |
string |
Properties
Section titled “Properties”Base64Content
Section titled “Base64Content”public string? Base64Content { get; }Base64 payload, when a comma was present.
Value: string
MediaType
Section titled “MediaType”public string? MediaType { get; }Media type, when the header contained one.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product