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

Methods

  • Get the parameters used to invoke the model

    Returns {
        model: string;
    }

    • model: string

Generated using TypeDoc