XaiFileDownload
Namespace: Vercel.AI.Xai
public sealed class XaiFileDownloadDownloaded xAI file bytes.
Inheritance: object
Constructors
Section titled “Constructors”XaiFileDownload(Stream, string?)
Section titled “XaiFileDownload(Stream, string?)”public XaiFileDownload(Stream content, string? mediaType)Creates a download.
Parameters
| Name | Type | Description |
|---|---|---|
content |
Stream | |
mediaType |
string |
Properties
Section titled “Properties”Content
Section titled “Content”public Stream Content { get; }File contents.
Value: Stream
MediaType
Section titled “MediaType”public string? MediaType { get; }Content type with parameters removed. Null when the response has none.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<ModelWarning> Warnings { get; }Always empty.
Value: IReadOnlyList<ModelWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product