Documentation
    Preparing search index...

    Interface LlmFetchResponse

    Response surface createHttpLlmProvider reads; a fetch Response satisfies it.

    interface LlmFetchResponse {
        body?: ReadableStream<Uint8Array<ArrayBufferLike>> | null;
        headers?: { get(name: string): string | null };
        ok: boolean;
        status: number;
        json(): Promise<unknown>;
    }
    Index

    Properties

    Methods

    Properties

    body?: ReadableStream<Uint8Array<ArrayBufferLike>> | null

    Response body stream; required when streaming.

    headers?: { get(name: string): string | null }

    Response headers; a streaming request falls back to JSON when content-type says so.

    ok: boolean
    status: number

    Methods