ImageResponseInfo
Namespace: Vercel.AI.Provider
public sealed class ImageResponseInfoResponse metadata of an image call. Maps to response of doGenerate on an image model.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }HTTP response headers.
Value: IReadOnlyDictionary<string, string>
ModelId
Section titled “ModelId”public string? ModelId { get; }Model id the provider reported.
Value: string
Timestamp
Section titled “Timestamp”public DateTimeOffset Timestamp { get; }Time the call started.
Value: DateTimeOffset
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product