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

    Interface ChatProviderOptions

    Options of createChatProvider.

    interface ChatProviderOptions {
        provider?: string;
        model?: string;
        keyStore?: KeyStore;
        env?: ProcessEnv;
    }
    Index
    provider?: string

    Preset id, like openrouter (chat --provider). Overrides the provider of the ai.json default.

    model?: string

    Model id (chat --model). Overrides the model of the ai.json default.

    keyStore?: KeyStore

    Where keys live. Defaults to ~/.polyman/ai.json.

    env?: ProcessEnv

    Env vars to read keys from, when no keyStore is given.