CoAgent8 - Source API
    Preparing search index...

    Function resolveBackendForModel

    • Resolves the backend for a named model. auto routes to a backend whose CLI lists the model, by id or alias; when none lists it, to one whose CLI decides itself: it runs unlisted models (Claude Code) or lists none. An explicit backend is kept and its catalog check reports a model it does not offer.

      Parameters

      Returns Promise<ResolvedBackend>

      MODEL_UNAVAILABLE naming each permitted backend that does not offer the model.