Skip to content

DataUrlParts

Namespace: Vercel.AI.Prompt

public sealed class DataUrlParts

Media type and base64 payload from a data URL. Maps to splitDataUrl.

Inheritance: object

View source

public DataUrlParts(string? mediaType, string? base64Content)

Creates parts.

Parameters

Name Type Description
mediaType string
base64Content string

View source

public string? Base64Content { get; }

Base64 payload, when a comma was present.

Value: string

View source

public string? MediaType { get; }

Media type, when the header contained one.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product