unified-llm-client
    Preparing search index...

    Interface OpenAIClientConfig

    interface OpenAIClientConfig {
        apiKey: string;
        baseUrl?: string;
        fetchImplementation?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        modelRegistry?: ModelRegistry;
        organization?: string;
        project?: string;
        retryOptions?: RetryOptions;
    }
    Index

    Properties

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

    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>

    modelRegistry?: ModelRegistry
    organization?: string
    project?: string
    retryOptions?: RetryOptions