Skip to content

OpenAICompatibleBinaryResponse

Namespace: Vercel.AI.OpenAICompatible

public sealed class OpenAICompatibleBinaryResponse

Raw bytes returned by a provider.

Inheritance: object

View source

OpenAICompatibleBinaryResponse(byte[], IReadOnlyDictionary<string, string>, int)

Section titled “OpenAICompatibleBinaryResponse(byte[], IReadOnlyDictionary<string, string>, int)”
public OpenAICompatibleBinaryResponse(byte[] body, IReadOnlyDictionary<string, string> headers, int statusCode)

Creates a binary response.

Parameters

Name Type Description
body byte[]
headers IReadOnlyDictionary<string, string>
statusCode int

View source

public byte[] Body { get; }

Response bytes.

Value: byte[]

View source

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

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public int StatusCode { get; }

HTTP status code.

Value: int

View source

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