Polyman Documentation - v3.1.0
    Preparing search index...

    A provider the user can pick by id.

    interface Preset {
        id: string;
        label: string;
        adapter: PresetAdapter;
        baseUrl: string;
        envVar: string;
        keyRequired: boolean;
        docsUrl: string;
        keysUrl?: string;
        quirks?: PresetQuirks;
        headers?: Readonly<Record<string, string>>;
        models: PresetModel[];
    }
    Index
    id: string

    Stable id, like deepseek.

    label: string

    Name shown to the user, like DeepSeek.

    adapter: PresetAdapter

    Which adapter talks to this provider.

    baseUrl: string

    Base URL of the API. A key of this preset is only ever sent here. Empty for custom, where the user gives it.

    envVar: string

    Env var that holds the key. Empty when there is none.

    keyRequired: boolean

    False for local servers that need no key.

    docsUrl: string

    The provider docs the base URL was checked against.

    keysUrl?: string

    The page where users make an API key, shown when there is no key.

    quirks?: PresetQuirks

    Changes from the default quirks of the adapter.

    headers?: Readonly<Record<string, string>>

    More headers for every request to this provider.

    models: PresetModel[]

    Known models. listModels() can find more.