BaseChatModelParams: {
    cache?: undefined | boolean | BaseCache<Generation[]>;
    callbackManager?: undefined | CallbackManager;
    callbacks?: undefined | Callbacks;
    disableStreaming?: undefined | boolean;
    maxConcurrency?: undefined | number;
    maxRetries?: undefined | number;
    metadata?: undefined | Record<string, unknown>;
    onFailedAttempt?: undefined | FailedAttemptHandler;
    tags?: undefined | string[];
    verbose?: undefined | boolean;
}

Represents the parameters for a base chat model.

Type declaration

  • Optionalcache?: undefined | boolean | BaseCache<Generation[]>
  • OptionalcallbackManager?: undefined | CallbackManager

    Use callbacks instead

  • Optionalcallbacks?: undefined | Callbacks
  • OptionaldisableStreaming?: undefined | boolean

    Whether to disable streaming.

    If streaming is bypassed, then stream() will defer to invoke().

    • If true, will always bypass streaming case.
    • If false (default), will always use streaming case if available.
  • OptionalmaxConcurrency?: undefined | number

    The maximum number of concurrent calls that can be made. Defaults to Infinity, which means no limit.

  • OptionalmaxRetries?: undefined | number

    The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.

  • Optionalmetadata?: undefined | Record<string, unknown>
  • OptionalonFailedAttempt?: undefined | 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.

  • Optionaltags?: undefined | string[]
  • Optionalverbose?: undefined | boolean