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

    Class TinyAnthropic

    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)

    • TinyProvider<
          AnthropicProvider,
          AnthropicProviderSettings,
          AnthropicMessagesModelId,
      >
      • TinyAnthropic
    Index

    Constructors

    Properties

    options: AnthropicProviderSettings
    provider: undefined | AnthropicProvider

    Methods

    • Returns the default model ID for the provider. This is used to create an ImageModelV1 instance when no modelId is provided.

      Returns AnthropicMessagesModelId

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

      Parameters

      • model: AnthropicMessagesModelId

      Returns ImageModelV1

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

      Parameters

      • Optionalmodel: AnthropicMessagesModelId

      Returns LanguageModelV1