interface WatsonxInputLLM {
    authenticator?: string;
    cache?: boolean | BaseCache<Generation[]>;
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    concurrency?: number;
    decodingMethod?: string;
    idOrName?: string;
    includeStopSequence?: boolean;
    lengthPenalty?: TextGenLengthPenalty;
    maxConcurrency?: number;
    maxNewTokens?: number;
    maxRetries?: number;
    metadata?: Record<string, unknown>;
    minNewTokens?: number;
    model: string;
    onFailedAttempt?: FailedAttemptHandler;
    projectId?: string;
    randomSeed?: number;
    repetitionPenalty?: number;
    returnOptions?: ReturnOptionProperties;
    serviceUrl: string;
    spaceId?: string;
    stopSequence?: string[];
    streaming?: boolean;
    tags?: string[];
    temperature?: number;
    timeLimit?: number;
    topK?: number;
    topP?: number;
    truncateInpuTokens?: number;
    verbose?: boolean;
    version: string;
}

Hierarchy

  • WatsonxParams
  • BaseLLMParams
    • WatsonxInputLLM

Implemented by

Properties

authenticator?: string
cache?: boolean | BaseCache<Generation[]>
callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
concurrency?: number

Use maxConcurrency instead

decodingMethod?: string
idOrName?: string
includeStopSequence?: boolean
lengthPenalty?: TextGenLengthPenalty
maxConcurrency?: number
maxNewTokens?: number
maxRetries?: number
metadata?: Record<string, unknown>
minNewTokens?: number
model: string
onFailedAttempt?: FailedAttemptHandler

Custom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.

projectId?: string
randomSeed?: number
repetitionPenalty?: number
returnOptions?: ReturnOptionProperties
serviceUrl: string
spaceId?: string
stopSequence?: string[]
streaming?: boolean
tags?: string[]
temperature?: number
timeLimit?: number
topK?: number
topP?: number
truncateInpuTokens?: number
verbose?: boolean
version: string