@zimtsui/brainswitch
    Preparing search index...

    Class Adaptor

    Index

    Properties

    config: {
        brainswitch: {
            endpoints: {
                [key: string]: {
                    apiKey: string;
                    apiType:
                        | "openai-chatcompletions"
                        | "openai-responses"
                        | "google"
                        | "qwen"
                        | "openrouter-monolith"
                        | "openrouter-stream"
                        | "huggingface-cerebras-qwen3-thinking";
                    baseUrl: string;
                    cachedPrice?: number;
                    customOptions?: { [key: string]: any };
                    inputPrice?: number;
                    model: string;
                    name: string;
                    outputPrice?: number;
                    proxy?: string;
                    rpm?: number;
                    timeout?: number;
                    tpm?: number;
                };
            };
        };
    }

    Methods

    • Parameters

      • endpointId: string

      Returns Throttle

    • Parameters

      • config: {
            brainswitch: {
                endpoints: {
                    [key: string]: {
                        apiKey: string;
                        apiType:
                            | "openai-chatcompletions"
                            | "openai-responses"
                            | "google"
                            | "qwen"
                            | "openrouter-monolith"
                            | "openrouter-stream"
                            | "huggingface-cerebras-qwen3-thinking";
                        baseUrl: string;
                        cachedPrice?: number;
                        customOptions?: { [key: string]: any };
                        inputPrice?: number;
                        model: string;
                        name: string;
                        outputPrice?: number;
                        proxy?: string;
                        rpm?: number;
                        timeout?: number;
                        tpm?: number;
                    };
                };
            };
        }

      Returns Adaptor