CoAgent8 - Source API
    Preparing search index...

    Function refreshPrices

    • Reads the price list from its source and stores the prices of the models the backends offer, those checked before and models.

      Parameters

      • models: readonly string[] = []

        Further models to match, such as the one a call names.

      • Optionalcontext: BackendReadContext

        Optional cancellation and timeout context (EXEC-001-T08f).

      Returns Promise<StoredPrices | undefined>

      The prices, or undefined when the source is unreachable, too slow, too large or malformed; the reason goes to stderr.