XaiFileUpload
Namespace: Vercel.AI.Xai
public sealed class XaiFileUploadBytes, base64, or a stream uploaded to xAI.
Inheritance: object
Properties
Section titled “Properties”Base64
Section titled “Base64”public string? Base64 { get; set; }Base64 file contents. Decoded before they are sent.
Value: string
public byte[]? Bytes { get; set; }Inline file bytes.
Value: byte[]
CancelStream
Section titled “CancelStream”public Action<Exception>? CancelStream { get; set; }Called when ExpiresAfter is rejected before any request.
Value: Action<Exception>
ExpiresAfter
Section titled “ExpiresAfter”public double? ExpiresAfter { get; set; }TTL in seconds. Integers from 3600 through 2592000 are accepted.
Value: double?
FileName
Section titled “FileName”public string? FileName { get; set; }File name. Omitted names are sent as blob.
Value: string
Headers
Section titled “Headers”public IDictionary<string, string>? Headers { get; set; }Headers merged over the provider headers.
Value: IDictionary<string, string>
MediaType
Section titled “MediaType”public string? MediaType { get; set; }File media type.
Value: string
Stream
Section titled “Stream”public Stream? Stream { get; set; }Streamed file contents. Fields are written before these bytes.
Value: Stream
TeamId
Section titled “TeamId”public string? TeamId { get; set; }team_id, when set.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product