Skip to content

ImageResponseInfo

Namespace: Vercel.AI.Provider

public sealed class ImageResponseInfo

Response metadata of an image call. Maps to response of doGenerate on an image model.

Inheritance: object

View source

ImageResponseInfo(DateTimeOffset, string?, IReadOnlyDictionary<string, string>?)

Section titled “ImageResponseInfo(DateTimeOffset, string?, IReadOnlyDictionary<string, string>?)”
public ImageResponseInfo(DateTimeOffset timestamp, string? modelId, IReadOnlyDictionary<string, string>? headers)

Creates response info.

Parameters

Name Type Description
timestamp DateTimeOffset
modelId string
headers IReadOnlyDictionary<string, string>

View source

public IReadOnlyDictionary<string, string> Headers { get; }

HTTP response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string? ModelId { get; }

Model id the provider reported.

Value: string

View source

public DateTimeOffset Timestamp { get; }

Time the call started.

Value: DateTimeOffset

View source

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