Skip to content

XaiFileDownload

Namespace: Vercel.AI.Xai

public sealed class XaiFileDownload

Downloaded xAI file bytes.

Inheritance: object

View source

public XaiFileDownload(Stream content, string? mediaType)

Creates a download.

Parameters

Name Type Description
content Stream
mediaType string

View source

public Stream Content { get; }

File contents.

Value: Stream

View source

public string? MediaType { get; }

Content type with parameters removed. Null when the response has none.

Value: string

View source

public IReadOnlyList<ModelWarning> Warnings { get; }

Always empty.

Value: IReadOnlyList<ModelWarning>

View source

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