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

    A provider for any server that speaks the OpenAI Chat Completions format.

    Implements

    Index
    id: string

    Provider id.

    quirks: Quirks

    The quirks in use. streamOptions may turn off after a rejection.

    baseUrl: string
    url: string
    headers: Record<string, string>
    fetchFn: (
        input: string | URL | Request,
        init?: RequestInit,
    ) => Promise<Response>
    generatedIds: number = 0
    • Lists the models of the server: GET {baseUrl}/models. Every server gives the ids. OpenRouter also gives the context window, the max output, the supported parameters and the prices, and parseModelList reads them. The key (when there is one) only goes to the base URL.

      Parameters

      • signal: AbortSignal

      Returns Promise<ModelInfo[]>

    Privatepost