@basetenlabs/client - v0.2.0
    Preparing search index...

    Interface InferenceClientOptions

    Options for InferenceClient.

    interface InferenceClientOptions {
        apiKey: string;
        baseUrlOverride?: string;
        chainId?: string;
        environment?: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        headers?: Record<string, string>;
        modelId?: string;
    }
    Index
    apiKey: string

    API key for authentication.

    baseUrlOverride?: string

    Explicit base URL override. When set, modelId, chainId, and environment are ignored.

    chainId?: string

    Chain ID. Mutually exclusive with modelId.

    environment?: string

    Environment name for regional routing (e.g. "production"). Affects the base URL hostname.

    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Custom fetch implementation. Defaults to globalThis.fetch.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    headers?: Record<string, string>

    Additional headers to send on every request.

    modelId?: string

    Model ID. Mutually exclusive with chainId.