Interface defining the structure of the input data for the Replicate class. It includes details about the model to be used, any additional input parameters, and the API key for the Replicate service.

interface ReplicateInput {
    model: `${string}/${string}` | `${string}/${string}:${string}`;
    apiKey?: string;
    input?: {
        [key: string]: string | number | boolean;
    };
    promptKey?: string;
    streaming?: boolean;
}

Implemented by

Properties

model: `${string}/${string}` | `${string}/${string}:${string}`
apiKey?: string
input?: {
    [key: string]: string | number | boolean;
}

Type declaration

  • [key: string]: string | number | boolean
promptKey?: string

The key used to pass prompts to the model.

streaming?: boolean

Whether or not to stream tokens as they are generated.

Default

{false}

Generated using TypeDoc