OpenAICompatibleBinaryResponse
Namespace: Vercel.AI.OpenAICompatible
public sealed class OpenAICompatibleBinaryResponseRaw bytes returned by a provider.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public byte[] Body { get; }Response bytes.
Value: byte[]
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Value: IReadOnlyDictionary<string, string>
StatusCode
Section titled “StatusCode”public int StatusCode { get; }HTTP status code.
Value: int
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product