Class representing the CloudflareWorkersAI language model. It extends the LLM (Large Language Model) class, providing a standard interface for interacting with the CloudflareWorkersAI language model.

Hierarchy

  • LLM
    • CloudflareWorkersAI

Implements

Constructors

Properties

baseUrl: string
model: string = "@cf/meta/llama-2-7b-chat-int8"
streaming: boolean = false
cloudflareAccountId?: string
cloudflareApiToken?: string

Accessors

  • get identifyingParams(): {
        model: string;
    }
  • Get the identifying parameters for this LLM.

    Returns {
        model: string;
    }

    • model: string

Methods

  • Get the parameters used to invoke the model

    Returns {
        model: string;
    }

    • model: string
  • Method to validate the environment.

    Returns void

Generated using TypeDoc