The GradientLLMParams interface defines the input parameters for the GradientLLM class.

interface GradientLLMParams {
    adapterId?: string;
    gradientAccessKey?: string;
    inferenceParameters?: Record<string, unknown>;
    modelSlug?: string;
    workspaceId?: string;
}

Hierarchy (view full)

Properties

adapterId?: string

Gradient Adapter ID for custom fine tuned models.

gradientAccessKey?: string

Gradient AI Access Token. Provide Access Token if you do not wish to automatically pull from env.

inferenceParameters?: Record<string, unknown>

Parameters accepted by the Gradient npm package.

modelSlug?: string

Gradient AI Model Slug.

workspaceId?: string

Gradient Workspace Id. Provide workspace id if you do not wish to automatically pull from env.