Member Junction
    Preparing search index...

    Model selection information for debugging and analysis

    Index

    Constructors

    Properties

    aiConfiguration?: MJAIConfigurationEntity

    The configuration entity that was used, if any

    fallbackUsed: boolean

    Whether a fallback model was used

    modelsConsidered: {
        available: boolean;
        model: MJAIModelEntityExtended;
        priority: number;
        unavailableReason?: string;
        vendor?: MJAIVendorEntity;
    }[]

    All models that were considered for selection

    Type Declaration

    • available: boolean

      Whether this model/vendor had an available API key

    • model: MJAIModelEntityExtended

      The model entity

    • priority: number

      Priority of this model/vendor combination

    • OptionalunavailableReason?: string

      Reason why this model/vendor wasn't available

    • Optionalvendor?: MJAIVendorEntity

      The vendor entity, if a specific vendor was considered

    The model entity that was selected

    selectionReason: string

    Reason for the selection

    selectionStrategy?: "Default" | "Specific" | "ByPower"

    The selection strategy that was used

    vendorSelected?: MJAIVendorEntity

    The vendor entity that was selected, if applicable

    Methods

    • Gets all model/vendor combinations that have available API keys. These are the valid candidates that can be used for execution or retry.

      Returns {
          available: boolean;
          model: MJAIModelEntityExtended;
          priority: number;
          unavailableReason?: string;
          vendor?: MJAIVendorEntity;
      }[]

      Array of models considered that are available (have API keys)

      • available: boolean

        Whether this model/vendor had an available API key

      • model: MJAIModelEntityExtended

        The model entity

      • priority: number

        Priority of this model/vendor combination

      • OptionalunavailableReason?: string

        Reason why this model/vendor wasn't available

      • Optionalvendor?: MJAIVendorEntity

        The vendor entity, if a specific vendor was considered