@cubie-ai/tiny-ai - v0.0.14
    Preparing search index...

    Class TinyXAI

    Base class for all providers. This class is used to create a provider instance. It is not meant to be used directly. Each provider should extend this class and implement the methods.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    options: XaiProviderSettings
    provider: undefined | XaiProvider

    Methods

    • Returns an ImageModelV1 instance for the given provider using the specified model ID or the provider's default model ID.

      Parameters

      • model:
            | string & {}
            | "grok-3"
            | "grok-3-latest"
            | "grok-3-fast"
            | "grok-3-fast-latest"
            | "grok-3-mini"
            | "grok-3-mini-latest"
            | "grok-3-mini-fast"
            | "grok-3-mini-fast-latest"
            | "grok-2-vision-1212"
            | "grok-2-vision"
            | "grok-2-vision-latest"
            | "grok-2-image-1212"
            | "grok-2-image"
            | "grok-2-image-latest"
            | "grok-2-1212"
            | "grok-2"
            | "grok-2-latest"
            | "grok-vision-beta"
            | "grok-beta"

      Returns ImageModelV1

    • Returns a LanguageModelV1 instance for the given provider using the specified model ID or the provider's default model ID.

      Parameters

      • Optionalmodel:
            | string & {}
            | "grok-3"
            | "grok-3-latest"
            | "grok-3-fast"
            | "grok-3-fast-latest"
            | "grok-3-mini"
            | "grok-3-mini-latest"
            | "grok-3-mini-fast"
            | "grok-3-mini-fast-latest"
            | "grok-2-vision-1212"
            | "grok-2-vision"
            | "grok-2-vision-latest"
            | "grok-2-image-1212"
            | "grok-2-image"
            | "grok-2-image-latest"
            | "grok-2-1212"
            | "grok-2"
            | "grok-2-latest"
            | "grok-vision-beta"
            | "grok-beta"

      Returns LanguageModelV1